I am using the follwoing script to create users in my w2k active directory
Set User = Container.Create("User", "CN=" & Fname & " " & Lname)
User.Put "samAccountName", Uid
User.Put "givenName", Fname
User.Put "sn", Lname
User.Put "displayName", Fname & " " & Lname
User.AccountDisabled = False
User.Put "userAccountControl", &h10000
Everything is working great, except when I right click the user -> Go to Proerties -> Go to Account Tab -> I am not seeing the user Logon name. The account works fine . I am seeing the logon name under pre-windows logon name though. I just copy and paste it from there to the logon name and managing it.
Any idea why the logon name is not geting set when using script?. What is the parameter I can use to set the logon name.