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
Month: August 2015
Add Group Membership Powershell
This script will add an AD Computer member to groups, script should be called like " .\script.ps1 -smartname HOSTNAME"Hostname should be the computers AD object name. https://gist.github.com/padgo/a8505459d07ea758c264.js