Tools Links Login

Create a NT User using a hidden command.com

Simply put, quickly add users to your local machine (NT/Win 2000). This code shows you how to create a user and set them as an Administrator.
You can set nearly all the prefrences for adding a user... email me if you need help doing so!

Original Author: Nick Bork

Inputs

UserName = NewUser
Password

Code

'Arguments to create the user as a LocalUser and a member of the group Users
TheArguments = "NET USER " & UserName & " " & Password & " /add"
Shell TheArguments, vbHide
'Arguments to add the user as a member of the group Administrators
TheArguments = "NET LOCALGROUP Administrators /Add " & UserName
Shell TheArguments, vbHide

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 74 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.