PDA

View Full Version : Automatic NT Login from DOS


Maxwell Edison
12-29-2000, 10:54 AM
Can someone tell me the syntax to make a DOS machine log onto an NT server without manually typing in the username/password? I was under the impression it was "net logon password /user:domain\username /y", but I have been unsuccessful so far.

Bricker
12-29-2000, 11:07 AM
Originally posted by Maxwell Edison
Can someone tell me the syntax to make a DOS machine log onto an NT server without manually typing in the username/password? I was under the impression it was "net logon password /user:domain\username /y", but I have been unsuccessful so far.


You can redirect the input from a text file. Say your password is 'mugwump.' Store the word wugwump in a text file called PASS.TXT on the root of C.

Have autoexec.bat include the line NET LOGON username * < PASS.TXT.

The * forces the password question to be asked in the next line; and the redirect supplies the answer.

Ah, the good old days of MS LANMAN.

- Rick