CAT | SCCM
19
SCCM 2007 : Get Service Window with PowerShell / WMI
No comments · Posted by christopher@vnext.be in SCCM
Hi,
Just a quick post to show you how to retrieve SCCM Client Service Window directly from a PowerShell script. The script is really simple, it queries the class CCM_ServiceWindow in the namespace "root\CCM\policy\machine\actualconfig". This script must be executed directly on a SCCM Client computer.
Script :
| $strComputer = "SCCMClient.contoso.com" $cred = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force)) foreach($item in $list) |
Output :
Cheers
Christopher KEYAERT
http://twitter.com/keyaertc
Object · PSCredential · SCCM · Service · ServiceWindow
