Windows Defender temporär abschalten, hatte ich hier
https://www.deskmodder.de/blog/2022/10/ ... /#comments
schon mal vorgestellt:
Code: Alles auswählen
powershell.exe -command "Set-MpPreference -DisableRealtimeMonitoring $true"
powershell.exe -command "Set-MpPreference -MAPSReporting Disabled"
powershell.exe -command "Set-MpPreference -SubmitSamplesConsent NeverSend"
powershell.exe -command "Set-MpPreference -DisableIntrusionPreventionSystem $true"
powershell.exe -command "Set-MpPreference -DisableIOAVProtection $true"
powershell.exe -command "Set-MpPreference -DisableScriptScanning $true"
powershell.exe -command "Set-MpPreference -EnableControlledFolderAccess Disabled"
powershell.exe -command "Set-MpPreference -EnableNetworkProtection Disabled"
powershell.exe -command "Set-MpPreference -ScanOnlyIfIdleEnabled $false"
powershell.exe -command "Set-MpPreference -DisableRemovableDriveScanning $true"
powershell.exe -command "Set-MpPreference -DisableEmailScanning $true"
powershell.exe -command "Set-MpPreference -PUAProtection Disabled"
Die erste Zeile reicht i.d.R. schon.
Wieder einschalten:
Code: Alles auswählen
powershell.exe -command "Set-MpPreference -DisableRealtimeMonitoring $false"
powershell.exe -command "Set-MpPreference -MAPSReporting Advanced"
powershell.exe -command "Set-MpPreference -SubmitSamplesConsent SendAllSamples"
powershell.exe -command "Set-MpPreference -DisableIntrusionPreventionSystem $false"
powershell.exe -command "Set-MpPreference -DisableIOAVProtection $false"
powershell.exe -command "Set-MpPreference -DisableScriptScanning $false"
powershell.exe -command "Set-MpPreference -EnableControlledFolderAccess Enabled"
powershell.exe -command "Set-MpPreference -EnableNetworkProtection Enabled"
powershell.exe -command "Set-MpPreference -ScanOnlyIfIdleEnabled:$false"
powershell.exe -command "Set-MpPreference -DisableRemovableDriveScanning:$false"
powershell.exe -command "Set-MpPreference -DisableEmailScanning:$false"
powershell.exe -command "Set-MpPreference -PUAProtection Enabled"
Das alles in einem .cmd Script.
Geht natürlich auch direkt als Powershell; dann eben alles ohne vorangestelltes "powershell.exe -command "
ggf. muss das Script schon mit einer Ausnahmeregel im Defender versehen werden, da der Defender dies gerne auch mal als Bedrohung (für sich selbst) einschätzt und löscht (Quarantäne).
Windows Defender temporär abschalten, hatte ich hier [url]https://www.deskmodder.de/blog/2022/10/16/defender-control-wird-nicht-mehr-weiterentwickelt-der-windows-defender-kann-beschaedigt-werden/#comments[/url]
schon mal vorgestellt:
[code]powershell.exe -command "Set-MpPreference -DisableRealtimeMonitoring $true"
powershell.exe -command "Set-MpPreference -MAPSReporting Disabled"
powershell.exe -command "Set-MpPreference -SubmitSamplesConsent NeverSend"
powershell.exe -command "Set-MpPreference -DisableIntrusionPreventionSystem $true"
powershell.exe -command "Set-MpPreference -DisableIOAVProtection $true"
powershell.exe -command "Set-MpPreference -DisableScriptScanning $true"
powershell.exe -command "Set-MpPreference -EnableControlledFolderAccess Disabled"
powershell.exe -command "Set-MpPreference -EnableNetworkProtection Disabled"
powershell.exe -command "Set-MpPreference -ScanOnlyIfIdleEnabled $false"
powershell.exe -command "Set-MpPreference -DisableRemovableDriveScanning $true"
powershell.exe -command "Set-MpPreference -DisableEmailScanning $true"
powershell.exe -command "Set-MpPreference -PUAProtection Disabled"[/code]
Die erste Zeile reicht i.d.R. schon.
Wieder einschalten:
[code]powershell.exe -command "Set-MpPreference -DisableRealtimeMonitoring $false"
powershell.exe -command "Set-MpPreference -MAPSReporting Advanced"
powershell.exe -command "Set-MpPreference -SubmitSamplesConsent SendAllSamples"
powershell.exe -command "Set-MpPreference -DisableIntrusionPreventionSystem $false"
powershell.exe -command "Set-MpPreference -DisableIOAVProtection $false"
powershell.exe -command "Set-MpPreference -DisableScriptScanning $false"
powershell.exe -command "Set-MpPreference -EnableControlledFolderAccess Enabled"
powershell.exe -command "Set-MpPreference -EnableNetworkProtection Enabled"
powershell.exe -command "Set-MpPreference -ScanOnlyIfIdleEnabled:$false"
powershell.exe -command "Set-MpPreference -DisableRemovableDriveScanning:$false"
powershell.exe -command "Set-MpPreference -DisableEmailScanning:$false"
powershell.exe -command "Set-MpPreference -PUAProtection Enabled"[/code]
Das alles in einem .cmd Script.
Geht natürlich auch direkt als Powershell; dann eben alles ohne vorangestelltes "powershell.exe -command "
ggf. muss das Script schon mit einer Ausnahmeregel im Defender versehen werden, da der Defender dies gerne auch mal als Bedrohung (für sich selbst) einschätzt und löscht (Quarantäne).