+ Reply to Thread
Results 1 to 3 of 3

Thread: ADM template Syntax to define regsitry settings

  1. #1
    icon is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    2

    Default

    Hey all, I am new to writing ADM templates, and I am trying to write a custom template that will define a new DWORD registry value. Here is what I am doing:
    * * *
    POLICY Display Key Icon Settings
    KEYNAME "Software\Policies\[path to settings]"
    EXPLAIN "This setting controls whether or not the Key Icon is displayed in the login window. A value of 0 will display the icon and a value of 1 will hide it."
    PART "HideKeyIcon" EDITTEXT REQUIRED
    DEFAULT Numeric 0
    VALUENAME "HideKeyIcon"
    MAXLEN 256
    END PART
    END POLICY
    * * *

    The "HideKeyIcon" value is a DWORD value. How would I define this, or does the registry magically know what sort of entry I am making?

    Thanks!

  2. #2
    icon is offline Getting Started on GPanswers.com
    Join Date
    Dec 1969
    Posts
    2

    Default

    Ok, well, I found some problems with my template above and modified it to this:

    POLICY HideKeyIcon
    KEYNAME "Software\Policies\Namescape\[path to settings]"
    EXPLAIN "This setting controls whether or not the Key Icon is displayed in the login window. A value of 0 will display the icon and a value of 1 will hide it."
    PART "HideKeyIcon" EDITTEXT REQUIRED
    VALUENAME "HideKeyIcon"
    END PART
    END POLICY

    And this works for updating the registry with the new setting, although it puts it in as a string value and I need to define it as a DWORD value. Any love out there?

  3. #3
    pago is offline 10+ Helpful Posts 20+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    25

    Default

    DWORD ?
    use NUMERIC insted of EDITTEXT.
    See
    http://technet.microsoft.com/en-us/library/cc759364.aspx
    for details:
    NUMERIC
    = Displays a text box with an optional spin control that accepts a numeric value. The value is set in the registry with the REG_DWORD type.


    ____________
    Patrick

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO