Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need NT Administration Examples
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00561854
Message ID:
00561900
Views:
28
Thanks for the code and the help. A few questions to make this complete. How do I set the users Fullname, Organization, options such as not having to change password at next login and password never expires?

>
>You can do this with the help of ADSI. The examples below should give you a start:
>
*-- Adds a user
>oDomain = GetObject("WinNT://myServer")
>oUser = oDomain.Create("user", "Crescencio")
>oUser.SetInfo
>oUser.SetPassword("mypassword")
>oUser.SetInfo
>*-- Adds the user to the group
>oGroup = oDomain.GetObject("Group", "Power Users")
>oGroup.Add("WinNT://myServer/Crescencio")
>HTH
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform