/build/static/layout/Breadcrumb_cap_w.png

A Script to log in a user account

Hello,

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.


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: SMal.tmcc 11 years ago
Red Belt
1

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

Posted by: alphabeta 11 years ago
Black Belt
0

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

http://support.microsoft.com/kb/315231

Posted by: chucksteel 11 years ago
Red Belt
0

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.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ