Skip to content

Instantly share code, notes, and snippets.

@kayasax
Last active August 29, 2015 14:22
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 kayasax/6e0d63dc359b9a3e597e to your computer and use it in GitHub Desktop.
Save kayasax/6e0d63dc359b9a3e597e to your computer and use it in GitHub Desktop.
powershell SCCM automation
$UIResource = New-Object -ComObject UIResource.UIResourceMgr
#list available software
$UIResource.GetAvailableApplications() | select ID,PackageID,PackageName
#install a soft
$UIResource.ExecuteProgram('*','CT1005EE',$true) # ID, PackageID, execute after download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment