Targeting Devices to turn on AutoLogin K100
More of a mad admin. Trying to push a reg setting to a windows device label to add autologin capabilities. I've added a task and not sure with a verify or on success component would be necessary but if thats the case I can add. Right now I have the following that doesn't seem to be working.
Verify
Remediation
- Set “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”.
- Set “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!AutoAdminLogon” to “1”
Getting the following error:
Running as SYSTEM Checking if registry key exists 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' succeeded Checking if registry key exists 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!AutoAdminLogon is equal to 1' did not succeed: (2) Setting registry key 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' succeeded Setting registry 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' value 'AutoAdminLogon' equal to '1' succeeded
Activity Log
verify - registry_key_exists Checking if registry exists: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon verify - registry_key_exists Checking if registry exists: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!AutoAdminLogon is equal to 1 verify - set_registry_key Setting registry key: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon verify - set_registry_value Setting registry 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' value 'AutoAdminLogon' equal to '1' verify - on_remediation_success verify - on_remediation_failure
Debug Log
Running kbot: runkbot 191 1496790423 KBotScript::LogScriptInfo - Start id=191 name=Test AutoLogin Windows version=1496786740 type=policy execute disconnected=false logged_off=true execute events KBotScript::LogScriptInfo - Finish KBotScript::LogScriptInfo - Start id=191 name=Test AutoLogin Windows version=1496786740 type=policy execute disconnected=false logged_off=true execute events KBotScript::LogScriptInfo - Finish
2 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
chucksteel
6 years ago
If you are running this script on a 64bit OS it won't work. The KACE agent is a 32bit application and can't access the 64bit area of the registry where these keys exist.
Comments:
-
thanks all, this worked perfectly! - guitarfishing 6 years ago
HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon - Desktop Jockey 6 years ago
https://support.quest.com/kace-systems-management-appliance/kb/118892 - Channeler 6 years ago