/build/static/layout/Breadcrumb_cap_w.png

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

  1. Verify that “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” exists.
    trashcan-icon.png
  2. Verify that “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon!AutoAdminLogon is equal to 1” exists.

Remediation

  1. Set “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”.
    trashcan-icon.png
  2. 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
  • Chuck is right. Try this for 64bit devices:
    HKLM64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon - Desktop Jockey 6 years ago
  • See:

    https://support.quest.com/kace-systems-management-appliance/kb/118892 - Channeler 6 years ago

Answers (1)

Posted by: chucksteel 6 years ago
Red Belt
1
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:
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ