fix: Disable Security Center on XP

This commit is contained in:
Kroese 2024-04-05 14:52:26 +02:00 committed by GitHub
parent 7fd8579ee9
commit 3607686351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -828,9 +828,15 @@ prepareXP() {
{ echo "Windows Registry Editor Version 5.00" { echo "Windows Registry Editor Version 5.00"
echo "" echo ""
echo "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security]" echo "[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security]"
echo "\"FirstRunDisabled\"=dword:00000001"
echo "\"AntiVirusOverride\"=dword:00000001"
echo "\"FirewallOverride\"=dword:00000001"
echo "\"FirewallDisableNotify\"=dword:00000001" echo "\"FirewallDisableNotify\"=dword:00000001"
echo "\"UpdatesDisableNotify\"=dword:00000001" echo "\"UpdatesDisableNotify\"=dword:00000001"
echo "\"AntiVirusDisableNotify\"=dword:00000001" echo "\"AntiVirusDisableNotify\"=dword:00000001"
echo ""
echo "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc]"
echo "\"Start\"=dword:00000004"
echo "" echo ""
echo "[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\StandardProfile]" echo "[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\WindowsFirewall\StandardProfile]"
echo "\"EnableFirewall\"=dword:00000000" echo "\"EnableFirewall\"=dword:00000000"
@ -870,7 +876,7 @@ prepareXP() {
echo "Set oInfoUser = GetObject(\"WinNT://\" & strComputer & \"/Administrator,user\")" echo "Set oInfoUser = GetObject(\"WinNT://\" & strComputer & \"/Administrator,user\")"
echo "set oUser = oMachine.MoveHere(oInfoUser.ADsPath,\"Docker\")" echo "set oUser = oMachine.MoveHere(oInfoUser.ADsPath,\"Docker\")"
} | unix2dos > "$dir/\$OEM\$/admin.vbs" } | unix2dos > "$dir/\$OEM\$/admin.vbs"
{ echo "[COMMANDS]" { echo "[COMMANDS]"
echo "\"REGEDIT /s install.reg\"" echo "\"REGEDIT /s install.reg\""
echo "\"Wscript admin.vbs\"" echo "\"Wscript admin.vbs\""