DougInCanada
Technical User
After creating a user object with a Distinguished Name ie:
How do I set his Account domain Logon Name (ie: HOFFAJ) via vbscript ?
Code:
Set objOU = GetObject("LDAP://OU=Company Users,dc=domain,dc=com")
Set objUser = objOU.Create("User", "cn=Jimmy Hoffa")
objUser.Put "sAMAccountName", "Jimmy Hoffa")
objUser.SetInfo
How do I set his Account domain Logon Name (ie: HOFFAJ) via vbscript ?