Setting the Target Devices
-
Windows 10 regards the remote execution of
msiexec.exethrough the Task Scheduler as malicious activity. Windows blocks this on the target computer. -
To disable Windows Defender's Anti-Malware with a PowerShell command on the target device: (For Windows server only)
-
Open PowerShell as Administrator.
-
Run:
Uninstall-WindowsFeature -Name Windows-Defender -
Reboot the computer after the Windows Defender Anti-Malware uninstalls.
-
- If the remote installation procedure fails, the Windows Defender enables after a restart. Disable the Windows Defender's Real-Time Protection again.