fixed script errors & added tests

This commit is contained in:
undergroundwires
2020-07-15 03:18:38 +01:00
parent 646a8e0b9f
commit 9e722ddfb3
5 changed files with 26 additions and 18 deletions

View File

@@ -304,14 +304,9 @@ actions:
SET /A dps_service_running=1
net stop DPS
)
REM del /F /S /Q /A "%windir%\System32\sru*"
IF !dps_service_running! == 1 (
echo "Was running"
net start DPS
) ELSE (
echo "Was not running"
)
endlocal
@@ -1146,7 +1141,7 @@ actions:
-
name: Disable Windows Defender
recommend: false
code: |
code: |-
netsh advfirewall set allprofiles state off
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\MpsSvc" /v "Start" /t REG_DWORD /d 4 /f