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” https://gist.github.com/danjpadgett/75e8010ebef99f46f59d.js

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