Skip to content

Instantly share code, notes, and snippets.

@joshivey
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshivey/2aff276e0348033769cc to your computer and use it in GitHub Desktop.
Save joshivey/2aff276e0348033769cc to your computer and use it in GitHub Desktop.
Event ID Run Program Command Line
# EventID 30196 - Software Updates Deployment Created
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -NoProfile -File "C:\Path\To\ScriptName.ps1" -msgID 30196 -AssignmentID %msgis02
# EventID 30197 - Software Updates Deployment Modified
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -NoProfile -File "C:\Path\To\ScriptName.ps1" -msgID 30197 -AssignmentID %msgis02
#
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment