Thanks for reading,
I'm hoping it's possible to create a Windows User programatically, preferably in VB6 however .Net could be Ok. For XP, Vista and Windows 7.
Any feedback appreciated, thanks.
Printable View
Thanks for reading,
I'm hoping it's possible to create a Windows User programatically, preferably in VB6 however .Net could be Ok. For XP, Vista and Windows 7.
Any feedback appreciated, thanks.
Checkout the following sample code project that how can user accounts created via VB6.
Planet Source Code Sample Project
Thanks for the reply.
I see it mentions XP and 2000, do you happen to know if it will work on Vista and Win7 as well ?
thanks
Well The simplest way to make such a program fully compatible is to use Shell.
Just Use The Shell to call / execute the following commands :
View user account details
NET USER [/DOMAIN]
Add a user account.
NET USER username {password | *} /ADD [options] [/DOMAIN]
Modify a user account.
NET USER [username [password | *] [options]] [/DOMAIN]
Delete a username
NET USER username [/DELETE] [/DOMAIN]
This is the simplest way, though it can be done via API too. But I believe this one will be the most compatible and error free as well as easy to implement.
For Vista Checkout the following link :
New User Accounts for Vista, 7
Thank you both for the reply aarslan1 and Mehmood.