Options

Pushing automatic logins to multiple machines

MishraMishra Member Posts: 2,468 ■■■■□□□□□□
This is an informative post. We have a need to automatically login as a certain user to perform tests on every machine. I created a method. Next for me to figure out is how to mass run a program once the users are logged in.

#1 Create Reg file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="your-username-here"
"DefaultDomainName"="your-domain-here"
"DefaultPassword"="your-password-here"
"AutoAdminLogon"="1"

#2 Create regedit Batch file

regedit /s your-reg-file-from-step-one.reg

#3 Add batch file to login scripts of GPO

#4 Create Reboot Batch file

shutdown -r -m \\your-machine-name1
shutdown -r -m \\your-machine-name2

#5 Reboot workstations using batch file
My blog http://www.calegp.com

You may learn something!

Comments

  • Options
    sprkymrksprkymrk Member Posts: 4,884 ■■■□□□□□□□
    Aren't you concerned about placing a password in plain text in the batch file/logon script?
    All things are possible, only believe.
  • Options
    MishraMishra Member Posts: 2,468 ■■■■□□□□□□
    sprkymrk wrote:
    Aren't you concerned about placing a password in plain text in the batch file/logon script?

    It is temporary for testing purposes. To make sure accounts can login and run the appropriate applications.

    It was pretty funny because I asked my co-worker "are you ready to break security policy for a few minutes?" lol
    My blog http://www.calegp.com

    You may learn something!
Sign In or Register to comment.