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!

Can't create new user; no error message just a hex number?

Status
Not open for further replies.

grittyminder

IS-IT--Management
Oct 18, 2005
53
JP
I'm trying to create a new user w/ the code below. The problem is that the user is not being created and instead of an error a strange hex number is being displayed. The strange thing is that I'm able to create new groups just fine (by replacing "user" with "group." Does anybody know what the problem is?

Dim objComputer, objUser
Set objComputer = GetObject("WinNT://" & serverName)
Set objUser = objComputer.Create("user", userName)
objUser.SetInfo
 
Ah, I jumped the gun with this post. The problem was that I didn't specify a password with the user. Silly me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top