Link to home
Start Free TrialLog in
Avatar of Eamon
EamonFlag for Ireland

asked on

Create a User

How do you create anew user on an xp or 2000 computer.
Can you assisgn them to a group
ASKER CERTIFIED SOLUTION
Avatar of TooKoolKris
TooKoolKris

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TooKoolKris
TooKoolKris

This one will add the user to a group as well.

strComputer = "MyComputer"
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
Set objUser = GetObject("WinNT://" & strComputer & "/kenmyer,user")
objGroup.Add(objUser.ADsPath)

Avatar of Eamon

ASKER

Perfect

Thank You TooKoolKris
Your Welcome