Sorry I forgot about the localgroup command, You wont be able to use Ingroup as he wants users added that are not the current user.

Haven't tested, and the script will keep trying to add users to localgroup no matter if they are already member.

Code:

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

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



Edited by Richie19Rich77 (2006-01-29 01:18 AM)