ADM: custom template to enter a hex value into the registry

H

Hans

I try to convert a registry setting into an ADM, but am not sure how to do
this right. Here's the input:

=====
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\7.0\General\cPrintAsImage]
@="TRUE"
"s0"=hex:5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,\
00
=====

And here's what i made:

=====
CLASS USER

CATEGORY "Custom Acrobat Reader"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General
CATEGORY "AR 7 | PrintAsImage"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General\cPrintAsImage
POLICY "HP 6 Technical"
PART "Check to enforce setting on; uncheck to enforce setting off" CHECKBOX
DEFCHECKED
VALUENAME "s0"
VALUEON HEX
5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,00
VALUEOFF HEX 0
END PART
END POLICY
=====

I'm not sure about the "HEX" keyword. Who can fill me in?

Hans.
 
D

Darren Mar-Elia \(MVP\)

Hans-
The HEX keyword is not valid in ADM syntax and ADM does not support adding
binary reg values directly. I suspect you may need a logon script to deliver
this reg change.

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy
 
H

Hans

Hi Darren,

Thanks for your reply. It would've been nice if it did but in that case i'll
try it by kix. But i like the GP-architecture... Couldn't i do this
indirectly perhaps? Say, the GP activates a reg import when the option is
selected?

Hans.

Darren Mar-Elia (MVP) said:
Hans-
The HEX keyword is not valid in ADM syntax and ADM does not support adding
binary reg values directly. I suspect you may need a logon script to
deliver this reg change.

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information
Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy



Hans said:
I try to convert a registry setting into an ADM, but am not sure how to do
this right. Here's the input:

=====
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Adobe\Acrobat
Reader\7.0\General\cPrintAsImage]
@="TRUE"
"s0"=hex:5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,\
00
=====

And here's what i made:

=====
CLASS USER

CATEGORY "Custom Acrobat Reader"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General
CATEGORY "AR 7 | PrintAsImage"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General\cPrintAsImage
POLICY "HP 6 Technical"
PART "Check to enforce setting on; uncheck to enforce setting off"
CHECKBOX DEFCHECKED
VALUENAME "s0"
VALUEON HEX
5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,00
VALUEOFF HEX 0
END PART
END POLICY
=====

I'm not sure about the "HEX" keyword. Who can fill me in?

Hans.
 
D

Darren Mar-Elia \(MVP\)

Sure. There are a number of ways to do this with GP:

--put the reg file in a GP-based logon script
--use the free Desktopstandard PolicyMaker Registry extension
(http://www.desktopstandard.com/PolicyMakerRegistryExtension.aspx), which
supports REG_BINARY types from a GP Editor interface
--hack into the file, registry.pol, that holds the registry settings, and
add it manually (ok, this one is a little hard :))


--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy



Hans said:
Hi Darren,

Thanks for your reply. It would've been nice if it did but in that case
i'll try it by kix. But i like the GP-architecture... Couldn't i do this
indirectly perhaps? Say, the GP activates a reg import when the option is
selected?

Hans.

Darren Mar-Elia (MVP) said:
Hans-
The HEX keyword is not valid in ADM syntax and ADM does not support
adding binary reg values directly. I suspect you may need a logon script
to deliver this reg change.

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information
Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy



Hans said:
I try to convert a registry setting into an ADM, but am not sure how to
do this right. Here's the input:

=====
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Adobe\Acrobat
Reader\7.0\General\cPrintAsImage]
@="TRUE"
"s0"=hex:5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,\
00
=====

And here's what i made:

=====
CLASS USER

CATEGORY "Custom Acrobat Reader"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General
CATEGORY "AR 7 | PrintAsImage"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General\cPrintAsImage
POLICY "HP 6 Technical"
PART "Check to enforce setting on; uncheck to enforce setting off"
CHECKBOX DEFCHECKED
VALUENAME "s0"
VALUEON HEX
5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,00
VALUEOFF HEX 0
END PART
END POLICY
=====

I'm not sure about the "HEX" keyword. Who can fill me in?

Hans.
 
H

Hans

Thanks for the links, i'll check 'm out.

Regards, Hans.

Darren Mar-Elia (MVP) said:
Sure. There are a number of ways to do this with GP:

--put the reg file in a GP-based logon script
--use the free Desktopstandard PolicyMaker Registry extension
(http://www.desktopstandard.com/PolicyMakerRegistryExtension.aspx), which
supports REG_BINARY types from a GP Editor interface
--hack into the file, registry.pol, that holds the registry settings, and
add it manually (ok, this one is a little hard :))


--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information
Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy



Hans said:
Hi Darren,

Thanks for your reply. It would've been nice if it did but in that case
i'll try it by kix. But i like the GP-architecture... Couldn't i do this
indirectly perhaps? Say, the GP activates a reg import when the option is
selected?

Hans.

Darren Mar-Elia (MVP) said:
Hans-
The HEX keyword is not valid in ADM syntax and ADM does not support
adding binary reg values directly. I suspect you may need a logon script
to deliver this reg change.

--
Darren Mar-Elia
MS-MVP-Windows Server--Group Policy
Check out http://www.gpoguy.com -- The Windows Group Policy Information
Hub:
FAQs, Training Videos, Whitepapers and Utilities for all things Group
Policy-related
GPOGUY Blog: http://blogs.dirteam.com/blogs/gpoguy



I try to convert a registry setting into an ADM, but am not sure how to
do this right. Here's the input:

=====
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Adobe\Acrobat
Reader\7.0\General\cPrintAsImage]
@="TRUE"
"s0"=hex:5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,\
00
=====

And here's what i made:

=====
CLASS USER

CATEGORY "Custom Acrobat Reader"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General
CATEGORY "AR 7 | PrintAsImage"
KEYNAME Software\Adobe\Acrobat Reader\7.0\General\cPrintAsImage
POLICY "HP 6 Technical"
PART "Check to enforce setting on; uncheck to enforce setting off"
CHECKBOX DEFCHECKED
VALUENAME "s0"
VALUEON HEX
5c,5c,63,6f,6f,70,65,72,5c,6d,61,67,69,63,6f,6c,6f,72,20,33,33,30,30,00
VALUEOFF HEX 0
END PART
END POLICY
=====

I'm not sure about the "HEX" keyword. Who can fill me in?

Hans.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top