How do I create Custom .adm template for registry

How do we add a new Dword registry value through group policy under this path

HKLM_Machine\SYSTEM\CurrentControlSet\services\http\parameters
and DWORD key is "URLSegmentLength" and Decimal value should be "4098"

***Share your comments about the post***

1 comment:

  1. Writing an Custom .adm template is quite easy but we need to know the syntax first.

    Syntax:

    CLASS MACHINE
    CATEGORY !!

    POLICY !!
    EXPLAIN !!
    KEYNAME

    VALUENAME VALUEON NUMERIC

    END POLICY
    END Category

    To answer directly to your question. you can try the below template.

    CLASS MACHINE
    CATEGORY !! CustomSettings

    POLICY !!UrlSegmentMaxCount
    EXPLAIN !!UrlSegmentMaxCount_Explain
    KEYNAME "SYSTEM\CurrentControlSet\services\http\parameters"
    VALUENAME UrlSegmentMaxCount VALUEON NUMERIC 4098

    END POLICY

    END CATEGORY

    [strings]

    CustomSettings="Configuration Registry settings"

    UrlSegmentMaxCount="URL Segment Max Count"
    UrlSegmentMaxCount_Explain="Maximum number of URL path segments. If zero, the count bounded by the maximum value of a ULONG."

    Save this as .adm extn file and add in your group policy.

    ReplyDelete