Does anyone have or know of a script that would log a user onto a pc? This would then enable me to log in on lots of computers at the same time rather that going to each machine.
Thanks
Printable View
Does anyone have or know of a script that would log a user onto a pc? This would then enable me to log in on lots of computers at the same time rather that going to each machine.
Thanks
Sounds like a bit of a security risk to me as it would need to know your password.
Not sure about a script, but iTalc can log in multiple computers at a time, has other great features too.
iTALC
Again - the slightly fantastic AB Tutor...
Code:
@echo off
if "%1" == "" goto end
for /l %%i in (0,1,30) do (
start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon /t REG_SZ /d 1
start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName /t REG_SZ /d USERNAME
start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t REG_SZ /d DOMAINNAME
start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword /t REG_SZ /d PASSWORD
start "Addreg %%i" reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount /t REG_DWORD /d 1
start "Restarting %1-%%i" shutdown -r -f -m %1-%%i -t 1
)
:end
rem %1 is the room name %i is the computer number %1-%1 = machine name
Our PC naming structure may not work for you with this script, however I am sure you can modify it to suit.
If you set a logon message to appear after hitting the CTRL-ALT-DEL you will have to do a run round OK'ing that manually but that's it.
That's what the autologon count is for.
Upon reboot that is decremented and when it reaches 0 the credentials are removed.
However I do have a removal script too, just to be on the safe side.
Code:
@echo off
if "%1" == "" goto end
for /l %%i in (0,1,30) do (
echo ===============================================================================
echo %1-%%i Started
echo ===============================================================================
start "%1-%i Removing Autologon" /min reg delete "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoAdminLogon
start "%1-%i Removing Autologon" /min reg delete "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultUserName
start "%1-%i Removing Autologon" /min reg delete "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultPassword
start "%1-%i Removing Autologon" /min reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v AutoLogonCount /t REG_DWORD /d 0
start "%1-%i Removing Autologon" /min reg add "\\%1-%%i\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v DefaultDomainName /t REG_SZ /d DOMAINNAME
start "Restarting %1-%%i" /min shutdown -r -f -m %1-%%i -t 1
echo ===============================================================================
echo %1-%%i Finished
echo ===============================================================================
)
:end
If you use Remote Desktop you can save logon credentials, so you just have to specify the IP or workstation name.