Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding local user object

Status
Not open for further replies.

grittyminder

IS-IT--Management
Oct 18, 2005
53
JP
Hi there,
I want to add a new local user. The slightly strange part is that the user to add is an object. So the following code, of course, won't work for this.

Set objUser = objComputer.Create("user", userName)
objUser.SetPassword password
objUser.SetInfo

Is it possible to add the entire user object? Or will I be forced to create a new user, then add all the attributes associated with the old user to the new user individually? If that is the route I must take, how can I ennumerate through the user object attributes?
 
Agh. I thought I was in the vbscript forum. My bad.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top