Retrieve SCCM Security Scope details using PowerShell

This short post is just to share an easy way to retrieve details related to Security Scopes in SCCM, using the Power shell and the WMI. The majority of the security scope details could simply be retrieved by running the following cmdlet:

Get-CMSecurityScope

The Following Power shell script could be used to list additional details related to SCCM Security Scope(s). Please ensure to replace the values for $smsserver and $siteCode with the netbios of your SCCM site server and the 3 characters site code.

$smsServer = “netbiosONLY” #Enter the Netbios of the SCCM site server
$siteCode = “xxx” #Enter the three characters SCCM site code
Get-WmiObject -computername $smsServer -Namespace “root\sms\site_$siteCode” -Class SMS_SecuredCategory

securityscope_additionaldetails

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s