Skip to content

Commit

Permalink
Update install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jymcheong committed Sep 28, 2020
1 parent d773aa9 commit 16ad2d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ schtasks /Create /TN "UAT" /XML "uatSchedTask.xml"
schtasks /Create /TN "UATupload" /XML "UploadSchtasks.xml"
schtasks /Create /TN "DFPM" /XML "DFPM.xml"

#Turn on Powershell ScriptBlockLogging
# Turn on Powershell ScriptBlockLogging
New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging" -Force
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging" -Name "EnableScriptBlockLogging" -Value 1 -Force

# Deny HTA execution, see https://github.com/jymcheong/OpenEDRclient/issues/2
cmd /c assoc .hta
cmd /c ftype htafile=C:\Windows\System32\notepad.exe %1

# Start agents
schtasks /Run /TN "UATupload"
Expand Down

0 comments on commit 16ad2d8

Please sign in to comment.