kayasax
6/10/2015 - 5:41 AM

powershell SCCM automation

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