Created
September 1, 2016 20:32
-
-
Save mikebranstein/1089dd73c0660b4e2b8dd6087405d4b1 to your computer and use it in GitHub Desktop.
Remotely execute a script to disable Windows Update with PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Disabling Windows Update on $deviceName..." | |
Invoke-Command -Session $session -FilePath .\Disable-WindowsUpdate.ps1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment