Last active
August 29, 2015 14:22
-
-
Save kayasax/6e0d63dc359b9a3e597e to your computer and use it in GitHub Desktop.
powershell SCCM automation
This file contains 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
$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