I have written a custom template to apply a single registry setting, however, sometimes it works and sometimes it doesn't. It seems to work consistently when the template is the only thing in the GPO and it is created and linked to the same OU. When other settings are added and it is linked to another OU, the registry setting does not always apply. As all settings are computer, I have diabled the User part of the GPO.
Here is the ADM file:
;;;;;;;;;;;;;;;;;;;;
CLASS MACHINE ;;;;;;
;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;
CATEGORY "Display Admin$ Share for STOW"
POLICY "Make Admin Share Available"
EXPLAIN "This policy makes the administrative shares appear on systems that have been configured with STOW. It has no impact on systems that have not been STOWed. It sets the registry key HKLM\System\CurrentControlSet\Services\LanmanServe r\Parameters\AutoShareWks to a REG_DWORD value of 1"
KEYNAME "System\CurrentControlSet\Services\LanmanServer\Pa rameters"
VALUENAME "AutoShareWks"
VALUEON NUMERIC "1" VALUEOFF NUMERIC "0"
END POLICY
END CATEGORY