http://www.microsoft.com/technet/com...r/default.mspx
You should be able to combine the code for Creating a Local User Account
with Adding a User to a Local Group
thx,
Bryston
This posting is provided "AS IS" with no warranties and confers no rights.
Al" <(E-Mail Removed)> wrote in message
news:c6c901c40ca2$d64fdd50$(E-Mail Removed)...
> I was looking all day for a script that would add a user
> to a LOCAL machine. I finally found one! The only problem
> is that I need to create the user in the "Administrators
> Group" I edited the script over 100 time and could not
> find any documentation on what class to call or anything.
>
> Here is the script:
> ************
> strComputer = "."
> Set colAccounts = GetObject("WinNT://" & strComputer
> & ",computer")
> Set objUser = colAccounts.Create("user", "Admin2")
> objUser.SetPassword "sA2xpWh"
> objUser.SetInfo
> **************
>
> seems simple enough>>
>
> Can anyone help???
>
>