bicky Posted June 20, 2014 Posted June 20, 2014 Hi, We have a computer suite of 30 Windows 7 computers. We have 30 user accounts (examuser01, examuser02, examuser03.....examuser30 etc) been created for exams purpose. Is there anyway using script/software to logon to these 30 machines simultaneously like: examuser01 to PC01 examuser02 to PC02 examuser03 to PC03 examuser04 to PC04 examuser04 to PC30 Any help would be much appreciated, thank
exim Posted February 15, 2022 Posted February 15, 2022 Sorry to bump such an old thread, but I wonder if @bicky you found a solution? or anyone else? Same situation, but need to log the same account into multiple PCs. Any simple script for a novice?
psydii Posted February 15, 2022 Posted February 15, 2022 Step 1: Make sure you set a strong password (14+ characters) on the account(s) Step 2: Run autologon (https://docs.microsoft.com/en-us/sysinternals/downloads/autologon) on each computer. Step 3: Do the things you need to do. Step 4: Run autologon again to disable it. Extension exercise (to help you move from novice to master): Read the documentation for autologon and understand what LSA secrets means. Then use procmon (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to watch what registry key autologon.exe sets. Finally then use a GPP Registry setting to enable/disable, but make wise choices based on your learning about LSA Secrets. (related: https://docs.microsoft.com/en-us/troubleshoot/windows-server/user-profiles-and-logon/turn-on-automatic-logon) Do not under any circumstance put the password into a Group Policy or script. The kids will find it and abuse it.
chaplic Posted February 15, 2022 Posted February 15, 2022 (edited) This script will achieve what you want, I'm assuming the machines are logging into AzureAD, if not modify the username build. Run as a machine script and notice the plaintext password.... $tennant="school.sch.uk"$username=$($ENV:COMPUTERNAME + "@" + $tennant) $password="Pwnme123" New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'DefaultUsername' -Value $username -PropertyType String -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'DefaultPassword' -Value $password -PropertyType String -Force -ea SilentlyContinue;New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AutoAdminLogon' -Value "1" -PropertyType String -Force -ea SilentlyContinue; Edited February 15, 2022 by chaplic
round2it Posted February 16, 2022 Posted February 16, 2022 i use lanschool to do this but not a script
Davit2005 Posted February 16, 2022 Posted February 16, 2022 Wouldn't be comfortable having a plain text password n a script, I know this is jus a local account but still it could be abused. You can create and encryted password file that is specific to the server you run the script on, i.e. if you move the script to a different server you jus need to re-generate the file again via a simple powershell script, As always create/use an account that has jus enough access i.e. not a domain admin account.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now