VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create a NT User using a hidden command.com

by Nick Bork (2 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

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!

Inputs
UserName = NewUser Password

Rate Create a NT User using a hidden command.com

'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

Download this snippet    Add to My Saved Code

Create a NT User using a hidden command.com Comments

No comments have been posted about Create a NT User using a hidden command.com. Why not be the first to post a comment about Create a NT User using a hidden command.com.

Post your comment

Subject:
Message:
0/1000 characters