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