Skip to content

Instantly share code, notes, and snippets.

@ShekharReddy4
Created November 7, 2017 12:41
Show Gist options
  • Save ShekharReddy4/ecc5e627eb9ed3fd97ec78590b69c641 to your computer and use it in GitHub Desktop.
Save ShekharReddy4/ecc5e627eb9ed3fd97ec78590b69c641 to your computer and use it in GitHub Desktop.
$runPSCommand7=Send-SSMCommand -InstanceId $InstanceID -DocumentName AWS-RunPowerShellScript -Comment 'command in execution1' -Parameter @{'commands'=@('$WUSettings = (New-Object -com "Microsoft.Update.AutoUpdate").Settings
$WUSettings.NotificationLevel=2
$WUSettings.save')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment