Skip to content

Commit

Permalink
Add debug messages to Defender script
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneegans committed Nov 15, 2024
1 parent ea5e718 commit 2a7af52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/DisableDefender.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Function FindHiveFiles
End Function

For Each file In FindHiveFiles
WScript.Echo "Will ignore file at '" + file + "' because it was already present when Windows Setup started."
existing.Add file, Nothing
Next

Expand All @@ -44,7 +45,7 @@ Do
ret = Execute("reg.exe ADD HKLM\mount\ControlSet001\Services\" + service + " /v Start /t REG_DWORD /d 4 /f")
Next
ret = Execute("reg.exe UNLOAD HKLM\mount")
WScript.Echo "Found SYSTEM registry hive file at '" + file + "'. This window will now close."
WScript.Echo "Found and successfully modified SYSTEM registry hive file at '" + file + "'. This window will now close."
WScript.Sleep 5000
Exit Do
End If
Expand Down

0 comments on commit 2a7af52

Please sign in to comment.