Setting the Target Devices

  1. Windows 10 regards the remote execution of msiexec.exe through the Task Scheduler as malicious activity. Windows blocks this on the target computer.
  2. To disable Windows Defender's Anti-Malware with a PowerShell command on the target device: (For Windows server only)
    1. Open PowerShell as Administrator.

    2. Run:

      Uninstall-WindowsFeature -Name Windows-Defender

    3. Reboot the computer after the Windows Defender Anti-Malware uninstalls.

  3. If the remote installation procedure fails, the Windows Defender enables after a restart. Disable the Windows Defender's Real-Time Protection again.