This project has moved and is read-only. For the latest updates, please go here.
Function PowerShell Code Comment
ADSiteName $a=New-Object -comObject 'CPAPPLET.CPAppletMgr';($a.GetClientProperties() | Where-Object { $_.Name -eq 'ADSiteName' }).Value Get SCCM Client Property ADSiteName
AllowLocalAdminOverride $a=Get-Wmiobject -class SMS_Client -namespace 'ROOT\CCM';$a.AllowLocalAdminOverride  
AllowLocalAdminOverride_Set $a = (Get-Wmiobject -class SMS_Client -namespace 'ROOT\\CCM');$a.AllowLocalAdminOverride = ${0};$a.Put(); Set AllowLocalAdminOverride Option
BrandingTitle (Get-Wmiobject -class CCM_ClientAgentSettings -namespace 'ROOT\CCM\ClientSDK').BrandingTitle Get the Branding Title
CCM_Application Get-WmiObject -Class CCM_Application -Namespace "root\ccm\clientsdk" Get Applications
CertKeyType $a=New-Object -comObject 'CPAPPLET.CPAppletMgr';($a.GetClientProperties() | Where-Object { $_.Name -eq 'CertKeyType' }).Value Get SCCM Client Property CertKeyType
ClientId $a=[wmiclass]"root\ccm\clientsdk:CCM_SoftwareCatalogUtilities";$a.GetDeviceID().ClientID Get the SCCMAgent GUID
ClientIdChangeDate (Get-Wmiobject -class CCM_Client -namespace 'ROOT\CCM').ClientIDChangeDate  
ClientType (Get-Wmiobject -class SMS_Client -namespace 'ROOT\CCM').ClientType  
ClientVersion $a=[wmiclass]"root\ccm\clientsdk:CCM_SoftwareCatalogUtilities";$a.GetClientVersion().ClientVersion Get the SCCM Agent Version
CommunicationMode $a=New-Object -comObject 'CPAPPLET.CPAppletMgr';($a.GetClientProperties() | Where-Object { $_.Name -eq 'CommunicationMode' }).Value Get SCCM Client Property CommunicationMode
EnableAutoAssignment (Get-Wmiobject -class SMS_Client -namespace 'ROOT\CCM').EnableAutoAssignment  
EnableAutoAssignment_Set $a = (Get-Wmiobject -class SMS_Client -namespace 'ROOT\\CCM');$a.EnableAutoAssignment = ${0};$a.Put() Set EnableAutoAssignment Option
MultiUsersLoggedOn $a=[wmiclass]"root\ccm\clientsdk:CCM_ClientInternalUtilities";$a.AreMultiUsersLoggedOn().MultiUsersLoggedOn Check if multiple Users are logged on
PreviousClientId (Get-Wmiobject -class CCM_Client -namespace 'ROOT\CCM').PreviousClientId  
RebootPending $a=[wmiclass]"root\ccm\clientsdk:CCM_ClientUtilities";$a.DetermineIfRebootPending() Determine if reboot is pending

Last edited Jun 6, 2011 at 9:03 PM by rzander, version 4

Comments

saagar4 Jan 9, 2014 at 10:23 PM 
when i run Get-WmiObject -Class CCM_Application -Namespace "root\ccm\clientsdk" it returns nothing.

Also when i connect localhost using client center and click application it returns nothing.

What could be reason for this behaviour