List SCCM Collections for PC – Powershell

This script will list all collections a machine is a member of, script should be called like ” .\script.ps1 -smartname HOSTNAME”

Hostname should be the computers AD object name. You will need to change the following values: $SiteCode = “XXX” $SiteServer = “prodservername”


Leave a Reply

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

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

Facebook photo

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

Connecting to %s