Monday 18 April 2011

Add Administrator from the command line

(This could be fatal is xp_cmdshell has been left open...)

C:\Users\->net user admintest p4ssw0rd /add
The command completed successfully.

C:\Users\->net localgroup administrators admintest /add
The command completed successfully.

No comments: