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.
ConfigMgr/Powershell Bits & Pieces
This script will add an AD Computer member to groups, script should be called like ” .\script.ps1 -smartname HOSTNAME”