Question Locked

My autologon script won't run when I use wake on lan

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am using the following script to auto logon about 20 stand alone xp workstations not attached to a server which all have deep freeze installed on them. I need to be able to auto logon to the workstations so I can run applications. Does anyone know a way I can accomplish this? Here is the script I am using.

Option Explicit
''
'Declarations'
''
Dim objShell
Dim RegLocAutoLogon
Dim keyDefaultDomainName
Dim valDefaultDomainName
Dim keyDefaultUserName
Dim valDefaultUserName
Dim keyDisableCAD
Dim valDisableCAD
Dim keyAutoAdminLogon
Dim valAutoAdminLogon
Dim keyForceAutoLogon
Dim valForceAutoLogon
Dim keyDefaultPassword
Dim valDefaultPassword

'''
'Define keys and values'
'''
RegLocAutoLogon = "HKLM\Software\Microsoft\" & _
"Windows NT\CurrentVersion\Winlogon\"
keyDefaultDomainName = "DefaultDomainName"
valDefaultDomainName = "Domain"
keyDefaultUserName = "DefaultUserName"
valDefaultUserName = "User"
keyDisableCAD = "DisableCAD"
valDisableCAD = 1
keyAutoAdminLogon = "AutoAdminLogon"
valAutoAdminLogon = "1"
keyForceAutoLogon = "ForceAutoLogon"
valForceAutoLogon = "1"
keyDefaultPassword = "DefaultPassword"
valDefaultPassword = "p@ssw0rd"

Set objShell = CreateObject("WScript.Shell")

objShell.RegWrite RegLocAutoLogon & _
keyDefaultDomainName, 1, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyDefaultDomainName, valDefaultDomainName, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyDefaultUserName, 1, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyDefaultUserName, valDefaultUserName, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyDisableCAD, 1, "REG_DWORD"
objShell.RegWrite RegLocAutoLogon & _
keyDisableCAD, valDisableCAD, "REG_DWORD"
objShell.RegWrite RegLocAutoLogon & _
keyAutoAdminLogon, 1, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyAutoAdminLogon, valAutoAdminLogon, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyForceAutoLogon, 1, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyForceAutoLogon, valForceAutoLogon, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyDefaultPassword, 1, "REG_SZ"
objShell.RegWrite RegLocAutoLogon & _
keyDefaultPassword, valDefaultPassword, "REG_SZ"

5 replies

by bigdog4579

I'm not sure what you are talking about but I think you are asking me to use the autologon script to logon and then run a batch file once the computer is logged on. If so, I can't accomplish this task due to the fact that these are public computers and are all password protected for security. The script will automatically log the computer on but I can't leave it in that state. I only need it to log on at a specific time and date.

by ic-it

Sorry if i was a little murky in my answer.
You can use the Advanced Maintenance tools in the Deep Freeze Configuration.
You then set your maintenance to run when the lab is not in use.
Basically they will reboot into a thawed state, send and start the batch file. If you desire the keyboard and mouse can be disabled while this is happening.

by bigdog4579

Yes, that's the way I have it configured with the maintenance mode. The problem is my script will not run as scheduled, it just stops at the welcome screen instead of auto logging into the account.

This discussion is closed to new replies.