Page 1 of 1

Net Command Help

Posted: 17 Jan 2010 23:46
by The Great One
How do I make this automatic so that no one has to enter a password so it would replace the password and password confirmation with code that would automatically type in a password.

@echo off
net user %username% *
password
password confirmation
exit

Posted: 18 Jan 2010 01:52
by viroid
Under Windows 7, I simply input the password after the username and it accepted it. It did not prompt twice. The syntax is;

net user %username% Password


...v

Posted: 18 Jan 2010 16:15
by The Great One
thx for the help