Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creatting an .adm template file

Status
Not open for further replies.

rmv

MIS
Jul 26, 2002
80
US
Hello,

I'm trying to figure out how to create a template file from a registry key. The path is HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Systray\
Keyname = Services, VALUE = 1d (29).

I have a Policy Template File Editor which I'm trying to figure out how to use.

Currently I've created this .adm file but it doesn't work.

CLASS USER

CATEGORY "Systray Settings"
KEYNAME "Software\Microsoft\Windows\CurrentVersion\Applets\Systray"
POLICY "Remove Icon from Systray"
Actionliston
Valuename "Services"
VALUE "29"
END ActionlistOn
End Policy
End Category


Could someone point me in the right direction. Thnak you in advance.
 
What exactly mean by it is not working

Above you are defining a TEXT (REG_SZ), where as the value that the system needs is a integer (REG_DWORD)

use the following code for your ADM

Code:
CLASS USER
  CATEGORY "Systray Settings"
    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Applets\Systray"
    POLICY "Remove Icon from Systray"
      Actionliston
          Valuename "Services"
        [b]VALUE NUMERIC 29[/b]
      END ActionlistOn
    End Policy
  End Category

Because this is a a prefrence and not a true policy setting (as it is not written to any of the defined registry policy keys, this will not display as a setting in the GPMC, you will need to :

View > Filtering > UNCHECK "Only show policy settings that can be fully managed"

The setting will now appear, but with a red dot...this just denotes that it is a preference, and not a true policy.


Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top