Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
The Great One
- Posts: 23
- Joined: 02 Jan 2010 20:54
#1
Post
by The Great One » 17 Jan 2010 23:46
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
-
viroid
- Posts: 8
- Joined: 04 Jan 2010 15:49
#2
Post
by viroid » 18 Jan 2010 01:52
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