Why not just do this, it will only work if the GPO is run as a domain admin account.

Code:

$Array = "Administrators_LocalAdmins","Power Users_LocalPowerUser","Remote Desktop Users_LocalRDPUsers"

For Each $ArrayString in $Array
Shell 'Net Group '+Split($ArrayString,'_')[1]+' '+Split($ArrayString,'_')[0]+' /Add /Domain'
Next



Edited by Richie19Rich77 (2006-01-28 12:20 AM)