brian873 Posted October 4, 2006 Share Posted October 4, 2006 (edited) HiI am having trouble creating a custom ADM template file that will add some text to the logon prompt in winXP.So far I have in my ADM file (mysetting.adm)CLASS MACHINECATEGORY !!category CATEGORY !!categoryname POLICY !!policynameKEYNAME "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"EXPLAIN !!explaintextPART !!labeltextlp EDITTEXTDEFAULT "By logging on you agree to company policy"VALUENAME "LogonPrompt"END PARTEND POLICYEND CATEGORYEND CATEGORY[strings]category="merle Custom Policy Settings"categoryname="WinLogon Banner"policyname="LogonPrompt"explaintext="Add Logon text to the win logon."labeltextlp="LogonPrompt"What I am trying to do here is currently achieved via a vbs logon script as shown below. Although this works I would like to get it in to the AD so things are nice and tidy.On Error Resume NextConst SUCCESS = 0Const LogERROR = 1Const WARNING = 2Const INFORMATION = 4Const AUDIT_SUCCESS = 8Const AUDIT_FAILURE = 16Dim PathSet WSHShell = Wscript.CreateObject("WScript.Shell")Path= "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\"WSHShell.RegWrite path & "LogonPrompt","Stop! This system processes electronic mail classified as Private under the Electronics Communications and Privacy act of 1986. Law enforcement officers please take note that special warrants may be required to access this system.","REG_SZ"If err then msgbox "Error Encountered" WshShell.LogEvent LogERROR, "Logon Prompt Setup Failed"Else msgbox "Logon Prompt Setup Sucessful" WshShell.LogEvent INFORMATION, _ "Logon Prompt Setup Was Successful."End if Edited October 4, 2006 by brian873 Link to comment Share on other sites More sharing options...
Ctrl-X Posted October 4, 2006 Share Posted October 4, 2006 These settings already exist in Group Policy: Computer Configuration / Windows Settings / Security Settings / Local Policies / Security Options; policies "Interactive logon: Message text for users attempting to log on" and "Interactive logon: Message title for users attempting to log on". Link to comment Share on other sites More sharing options...
brian873 Posted October 5, 2006 Author Share Posted October 5, 2006 thanks ctrl-x, I know about that setting. But the problem with it for me, is it gives you an extra click. If you use the above script it puts the text on the same screen you enter your logon details in.It is a mod that I really like. I would just liekt o be able to deploy it through a GPO.Thanks again for your input Link to comment Share on other sites More sharing options...
Ctrl-X Posted October 5, 2006 Share Posted October 5, 2006 Okay, so what't the problem with your custom ADM file then? Link to comment Share on other sites More sharing options...
brian873 Posted October 5, 2006 Author Share Posted October 5, 2006 My file as above does not work.It creates the custom folder structure in the left hand pane of PGO editor computer configuration > administrative templates > WinLogOnBut in the right hand pane there are no settings.Any help would be appreciated very much Link to comment Share on other sites More sharing options...
Ctrl-X Posted October 5, 2006 Share Posted October 5, 2006 (edited) The setting isn't displayed because the Group Policy console by default only shows "real" policies that can be fully managed. What you are doing is technically not a policy, but a preference. To change this setting right-click the Administrative Templates node, select View / Filtering and uncheck the "Only show policy settings that can be fully managed" setting. To learn more about the difference between policies and preferences, read the Step-by-Step Guide to Understanding the Group Policy Feature Set. Edited October 5, 2006 by Ctrl-X Link to comment Share on other sites More sharing options...
brian873 Posted October 5, 2006 Author Share Posted October 5, 2006 Thanks CTRL-X !I'll have a read up on this.Thanks agian for your helphail hail Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now