Skip to content

Instantly share code, notes, and snippets.

@mikebranstein
Created September 1, 2016 20:32
Show Gist options
  • Save mikebranstein/1089dd73c0660b4e2b8dd6087405d4b1 to your computer and use it in GitHub Desktop.
Save mikebranstein/1089dd73c0660b4e2b8dd6087405d4b1 to your computer and use it in GitHub Desktop.
Remotely execute a script to disable Windows Update with PowerShell
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