-
Apr 10th, 2011, 07:36 PM
#1
Thread Starter
Member
Create Windows User Programatically ?
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.
-
Apr 11th, 2011, 06:33 AM
#2
Addicted Member
Re: Create Windows User Programatically ?
Checkout the following sample code project that how can user accounts created via VB6.
Planet Source Code Sample Project
-
Apr 11th, 2011, 06:49 AM
#3
Thread Starter
Member
Re: Create Windows User Programatically ?
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
-
Apr 11th, 2011, 07:14 AM
#4
Member
Re: Create Windows User Programatically ?
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.
Thinking And Saying Java is great because it works on All operating Systems is same as saying Anal is good because it works on all genders - By Arslan
-
Apr 11th, 2011, 10:20 AM
#5
Addicted Member
Re: Create Windows User Programatically ?
For Vista Checkout the following link :
New User Accounts for Vista, 7
-
Apr 11th, 2011, 05:59 PM
#6
Thread Starter
Member
Re: Create Windows User Programatically ?
Thank you both for the reply aarslan1 and Mehmood.
-
Apr 11th, 2011, 06:13 PM
#7
Re: Create Windows User Programatically ?
Originally Posted by Mehmood Iqbal
For Vista Checkout the following link :
Cool! Although, is that vbscript or vb6 code? Also, could you please check the link you posted for the WinXP version! I received an error "The page cannot be displayed" when visiting that link.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Apr 12th, 2011, 07:38 AM
#8
Addicted Member
Re: Create Windows User Programatically ?
Originally Posted by Nightwalker83
Cool! Although, is that vbscript or vb6 code? Also, could you please check the link you posted for the WinXP version! I received an error "The page cannot be displayed" when visiting that link.
Oh-IC ! PlanetSorceCde.Com server down temporally. Try later. And Second link was posted because i think, It was use-full to understand some User Account's Fundamentals. Maybe it solve the problem !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|