I am trying to come up with a script that I can run so I can remotley have a generaic user account log into multiple machines in our domain so I can run certain scripts that will not run from ctrl+alt+del.  I am relativly new to the scripting process so there may be a better way to do this that I do not know of.  Thank you in advance.

Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


use the autologin keys and set a count key of number of time to autologin.  You can push a batch or script with these commands:

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1  /f

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 1  /f

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /d DomainName  /f

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d DomainUser  /f

start /wait reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d Password /f

shutdown -r -t 0 -f

Answered 10/16/2012 by: SMal.tmcc
Red Belt

Please log in to comment



I'm assuming you have either Windows 7 or Windos XP so...

For Windows 7

  1. Press the Windows key + R on your keyboard to launch the “Run” dialog box.
  2. Type in control userpasswords2
  3. Press Enter. The User Accounts window will display.
  4. Uncheck the option “Users must enter a user name and password to use this computer”
  5. Click “OK”
  6. You will then be prompted to enter the current password and confirm it.
  7. After doing so, you will no longer be prompted to enter your password upon login.


For Windows XP


Answered 10/16/2012 by: alphabeta
Third Degree Brown Belt

Please log in to comment

Whenever I run into this situation I add the keys for autologin to the registry, reboot the machine so that it logs in and when I'm done remove the autologin keys from the registry and reboot again.

Answered 10/16/2012 by: chucksteel
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity