ADM Template for AutoLogon... I need some help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi all,

I am after some help with the following...

I am trying to make an ADM template which will allow for an AutoLogon...

To date I have yet to get it to work... Can someone help me out please...

I think part of the problem is I am not writing the values as REG_SZ's???

CLASS MACHINE

CATEGORY !!AutoLogon

KEYNAME "SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Winlogon"

POLICY !!WindowsAuto

PART !!AutoAdminLogon CHECKBOX DEFCHECKED
VALUENAME "AutoAdminLogon"
VALUEON "True"
VALUEOFF "False"
END PART

PART !!ForceAutoLogon CHECKBOX DEFCHECKED
VALUENAME "ForceAutoLogon"
VALUEON "True"
VALUEOFF "False"
ACTIONLISTOFF
VALUENAME "DefaultUsername" VALUE DELETE
VALUENAME "DefaultPassword" VALUE DELETE
END ACTIONLISTOFF
END PART

PART !!EnterUsername EDITTEXT REQUIRED MAXLEN 14
VALUENAME "DefaultUserName"
DEFAULT "username"
END PART

PART !!EnterPassword EDITTEXT REQUIRED MAXLEN 14
VALUENAME "DefaultPassword"
DEFAULT "password"
END PART

PART !!DefaultDomainName EDITTEXT REQUIRED MAXLEN 14
VALUENAME "DefaultDomainName"
DEFAULT "domain"
END PART
END POLICY
END CATEGORY

[STRINGS]
AutoLogon="AutoLogon"
WindowsAuto="Windows Autologon Settings"
AutoAdminLogon="Auto Admin Logon"
ForceAutoLogon="Force Auto Logon"
EnterUsername="Enter Username"
EnterPassword="Enter Password"
DefaultDomainName="Default Domain Name"
 
Hi,
PART !!AutoAdminLogon CHECKBOX DEFCHECKED
VALUENAME "AutoAdminLogon"
VALUEON "True"
VALUEOFF "False"
END PART

It´s 0 or 1, not true or false ...
PART !!ForceAutoLogon CHECKBOX DEFCHECKED
VALUENAME "ForceAutoLogon"

I have never seen a valuename "forceautologon" inside the
Winlogon hive in registry ... ;-)

1. The ADM template is a kind of mirror of the registry
2. it´s like a registry export, only with a little different syntax

So, you can only work with values, valuenames that are having
an exact expression inside the registry.

To set Autologon in a reg file, there are only 3 (4) Values involved.
3 on a workgroup system, 4 in a domain member.

"AutoAdminLogon"="1"
"DefaultUsername"="Your_Username"
"DefaultDomainName"="Your_Domain"
"DefaultPassword"="Your_PW"

Your template could look like this, tattoing, don´t know
if it would work inside a polcies hive ...

----- autologin.adm -----
CLASS MACHINE
CATEGORY "Windows Logon"
POLICY "Auto Logon Feature"
KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

PART "Activate Auto Logon" CHECKBOX
VALUENAME "AutoAdminLogon"
VALUEON "1" VALUEOFF "0"
END PART

PART "Name of User:" EDITTEXT
VALUENAME "DefaultUsername"
DEFAULT "Your_Username"
END PART

PART "Name of Domain:" EDITTEXT
VALUENAME "DefaultDomainName"
DEFAULT "Your_DomainName"
END PART

PART "Password:" EDITTEXT
VALUENAME "DefaultPassword"
DEFAULT "Your_Password"
END PART
END POLICY
END CATEGORY

----- autologin.adm -----

If these entries are defchecked, required or set to a maxlen
doesnt have an efect on the function of the template, they are
just to "advice" the admin not to forget ... ;-)

Mark
 
Back
Top