« Home | Microsoft SQL Server T-SQL UDF Luhn Function » | Sysprep changes in Windows XP SP2 » 

Tuesday, October 18, 2005 

Group Policy Auto Logon Administrative Template

Here's an administrative template for Microsoft Active Directory Group Policy that will allow you to setup systems to automatically logon. We use this for public terminal web browsing machines to allow them to automatically logon and start a web browser. To use this first add the adm template to your group policy and then under the view menu select "Filtering" and make sure "Only show policy settings that can be fully managed" is not checked. See screenshot here.

Download AutoLogon.adm

Begin Code (autologon.adm)
CLASS MACHINE
CATEGORY "System"
CATEGORY "Logon"
POLICY "AutoLogon"
EXPLAIN "These settings can be used to allow the system to logon automatically. To enable autologon, set the first two settings (AutoAdminLogon and ForceAutologon) to 1, and then fill in the appropriate account information. Keep in mind that this information will be stored in cleartext in the systems registry."
KEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

PART "AutoAdminLogon" NUMERIC REQUIRED TXTCONVERT
VALUENAME "AutoAdminLogon"
MIN 0 MAX 1 DEFAULT "0" SPIN 1
END PART

PART "ForceAutoLogon" NUMERIC REQUIRED TXTCONVERT
VALUENAME "ForceAutoLogon"
MIN 0 MAX 1 DEFAULT "0" SPIN 1
END PART

PART "DefaultUserName" EDITTEXT REQUIRED
VALUENAME "DefaultUserName"
DEFAULT "Username" MAXLEN 128
END PART


PART "DefaultPassword" EDITTEXT REQUIRED
VALUENAME "DefaultPassword"
DEFAULT "Password" MAXLEN 128
END PART

PART "DefaultDomainName" EDITTEXT REQUIRED
VALUENAME "DefaultDomainName"
DEFAULT "Domain" MAXLEN 128
END PART

PART "AltDefaultUserName" EDITTEXT REQUIRED
VALUENAME "AltDefaultUserName"
DEFAULT "Should match username above" MAXLEN 128
END PART

PART "AltDefaultDomainName" EDITTEXT REQUIRED
VALUENAME "AltDefaultDomainName"
DEFAULT "Should match domain above" MAXLEN 128
END PART

END POLICY
END CATEGORY
END CATEGORY

Thank you! Aloha from Hawaii!!!

This post has been removed by a blog administrator.

This post has been removed by a blog administrator.

Great ADM template, thanks from San Diego. One thing your users may want to be aware of, is to insert a carriage return after the last line. Before I did that, the GP editor was giving an error while trying to import.

Great ADM template, thanks from Lucerne.

for full automatic logon, you need to disable ctrl alt del at login screen too:

http://www.visualwin.com/Disable-C-A-D/

wow that does look like a cool hack.
Thanks..

Online gre preparation

Great Template, thanks from Indy for posting this for the rest of us.

great template, thanks.
just a little extra question, what if you want the computer to logon under a local account? what the should go under domain?

Thank you from LinkingPro. Wonderful ADM template.

Thank you for making this. Saved me a lot of time. Worked great for my machine shop clients.

Much appreciated.

Post a Comment

Links to this post

Create a Link

About me

Photos

Sponsored Links:

Digg