Add Domain User or Domain Group to Local Administrators Group

This script will add a domain user or group to the local administrators group of a remote computer. Make sure to change YourDomain to your WinNT domain name. Also change Administrators if you need to add the user or group to a different local group.

To use at a command prompt:
add_admin.vbs [computer] [user]

To add the domain user user01 to the local administrators group on workstation01:
C:\>cscript.exe add_admin.vbs workstation01 user01

To add the domain group DomainIT to the local administrators group on workstation01:
C:\>cscript.exe add_admin.vbs workstation01 DomainIT