Suppose I have a bunch of systems with nobody presently logged into them. Is it possible to script out a log in sequence?

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

You can push a registry key to change to enable autologin and restart the machine

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

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

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

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

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

shutdown -r -f -t 10

Answered 09/27/2012 by: SMal.tmcc
Red Belt

  • Aware of the autologon method, hoping for an alternative
  • do you not want to restart? we have the previous commands in a script and run it as offline, run now.
    sysinternals also has http://technet.microsoft.com/en-us/sysinternals/bb963905.aspx
Please log in to comment
0

What is your end goal with a logon script?  Are you trying to run a script or MI without someone logged on?

If so, you can do that in both since they run using LocalSystem.  You can run as other users in a script as well as logged on user.

Answered 09/27/2012 by: jknox
Red Belt

  • I have some stuff that needs done which is only possible using a GUI, for which I have an AutoIT script. I would like to avoid logging in to each machine.
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share