Results 1 to 8 of 8

Thread: Create Windows User Programatically ?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    47

    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.

  2. #2
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: Create Windows User Programatically ?

    Checkout the following sample code project that how can user accounts created via VB6.

    Planet Source Code Sample Project

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    47

    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

  4. #4
    Member aarslan1's Avatar
    Join Date
    Dec 2010
    Location
    Canada
    Posts
    46

    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

  5. #5
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: Create Windows User Programatically ?

    For Vista Checkout the following link :

    New User Accounts for Vista, 7

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2011
    Posts
    47

    Re: Create Windows User Programatically ?

    Thank you both for the reply aarslan1 and Mehmood.

  7. #7
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Create Windows User Programatically ?

    Quote Originally Posted by Mehmood Iqbal View Post
    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

  8. #8
    Addicted Member Mehmood Iqbal's Avatar
    Join Date
    Mar 2011
    Location
    Chakwal, Pakistan
    Posts
    150

    Re: Create Windows User Programatically ?

    Quote Originally Posted by Nightwalker83 View Post
    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
  •  



Click Here to Expand Forum to Full Width