Admin account creator

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
4 posts Page 1 of 1
Contributors
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

Admin account creator
Proprogrammer
you will need...
2 textboxes(1 for username and one for password!)
1 button(create)

code for button 1----
Code: Select all
On Error Resume Next
        Shell("net user " & TextBox1.Text & " /add")
        Shell("Net user " & TextBox1.Text & " " & TextBox2.Text)
        Shell("net localgroup administrators " & TextBox1.Text & " /add")
        MsgBox("The new user," & TextBox1.Text & ",has been created!", MsgBoxStyle.Information, "Info")
    End Sub
I know it is pretty simple but still cool idea.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Admin account creator
mandai
You could also use DirectoryEntry instead of relying on shell.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Admin account creator
zachman61
OOOH a new tutorial for once!
good job
Thanked
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
code it
VIP - Site Partner
VIP - Site Partner
Posts: 821
Joined: Sun Oct 10, 2010 3:02 pm

Re: Admin account creator
code it
doesn't work
4 posts Page 1 of 1
Return to “Tutorials”