grittyminder
IS-IT--Management
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
Dim objComputer, objUser
Set objComputer = GetObject("WinNT://" & serverName)
Set objUser = objComputer.Create("user", userName)
objUser.SetInfo