PC Review


Reply
Thread Tools Rate Thread

Binary values in group policy

 
 
Simon Johnson
Guest
Posts: n/a
 
      21st May 2004
I'm trying to create a custom policy for Windows 2000 SBS that sets
software restrictions (of the cryptographic hash kind).

All is going well except for the fact that a couple of the registry
keys are of type binary.

According to various sources i've read your meant to use the numeric
type and it autodetects when to use a binary or dword.

So I converted the ItemData field to a huge decimal number:
275457228279875578229615414049268972442.

and created the following template:

CLASS MACHINE
CATEGORY "Software Restriction Policies"
POLICY "Disable Command Prompt"

KEYNAME "Software\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Hashes\{a47931aa-8280-4408-b362-22a95bf8ec48}"
ACTIONLISTON
VALUENAME "Description" VALUE "Disable the Command Prompt"
VALUENAME "FriendlyName" VALUE "(5.1.2600.2096)"
VALUENAME "HashAlg" VALUE NUMERIC 32771
VALUENAME "ItemData" VALUE NUMERIC
275457228279875578229615414049268972442
VALUENAME "ItemSize" VALUE NUMERIC 65870642108432384
VALUENAME "LastModified" VALUE NUMERIC 4643848508271477761
VALUENAME "SaferFlags" VALUE NUMERIC 0
END ACTIONLISTON
ACTIONLISTOFF
VALUENAME "Description" VALUE DELETE
VALUENAME "FriendlyName" VALUE DELETE
VALUENAME "HashAlg" VALUE DELETE
VALUENAME "ItemData" VALUE DELETE
VALUENAME "ItemSize" VALUE DELETE
VALUENAME "LastModified" VALUE DELETE
VALUENAME "SaferFlags" VALUE DELETE
END ACTIONLISTOFF
END POLICY
END CATEGORY

The binary values however appear to truncate. How do I put these long
binary values into an ADM?

Or, Is there a better way of achieving this function (that doesn't
require an upgrade to SBS2003)

Simon.
 
Reply With Quote
 
 
 
 
Peter Beauregard
Guest
Posts: n/a
 
      24th May 2004
(E-Mail Removed) (Simon Johnson) wrote in message news:<(E-Mail Removed)>...
> I'm trying to create a custom policy for Windows 2000 SBS that sets
> software restrictions (of the cryptographic hash kind).
>
> All is going well except for the fact that a couple of the registry
> keys are of type binary.
>
> According to various sources i've read your meant to use the numeric
> type and it autodetects when to use a binary or dword.
>
> So I converted the ItemData field to a huge decimal number:
> 275457228279875578229615414049268972442.
>
> and created the following template:
>
> CLASS MACHINE
> CATEGORY "Software Restriction Policies"
> POLICY "Disable Command Prompt"
>
> KEYNAME "Software\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Hashes\{a47931aa-8280-4408-b362-22a95bf8ec48}"
> ACTIONLISTON
> VALUENAME "Description" VALUE "Disable the Command Prompt"
> VALUENAME "FriendlyName" VALUE "(5.1.2600.2096)"
> VALUENAME "HashAlg" VALUE NUMERIC 32771
> VALUENAME "ItemData" VALUE NUMERIC
> 275457228279875578229615414049268972442
> VALUENAME "ItemSize" VALUE NUMERIC 65870642108432384
> VALUENAME "LastModified" VALUE NUMERIC 4643848508271477761
> VALUENAME "SaferFlags" VALUE NUMERIC 0
> END ACTIONLISTON
> ACTIONLISTOFF
> VALUENAME "Description" VALUE DELETE
> VALUENAME "FriendlyName" VALUE DELETE
> VALUENAME "HashAlg" VALUE DELETE
> VALUENAME "ItemData" VALUE DELETE
> VALUENAME "ItemSize" VALUE DELETE
> VALUENAME "LastModified" VALUE DELETE
> VALUENAME "SaferFlags" VALUE DELETE
> END ACTIONLISTOFF
> END POLICY
> END CATEGORY
>
> The binary values however appear to truncate. How do I put these long
> binary values into an ADM?
>
> Or, Is there a better way of achieving this function (that doesn't
> require an upgrade to SBS2003)
>
> Simon.


Hi Simon,
You can use the free Registry extension in Policy Maker Professional
to set ANY registry setting (including binary values) with a native
Group Policy Extension. It's very easy to use because Policy Maker
extensions are plug-ins to the Group Policy Editor, and the Registry
Extension is very similar to Regedit. Browse to the setting, edit it,
save the GPO, and the registry setting is applied as policy. Again,
the registry extension is free to use across the network. Download
here: www.autoprof.com/download.html
Peter Beauregard
AutoProf
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry Values and Group Policy jimwashere Microsoft Word Document Management 7 26th Mar 2009 10:02 AM
BINARY values in custom policy templates Frostillicus Windows XP General 0 14th Apr 2005 04:26 AM
Registry Keys & Values with Group Policy joh Microsoft Windows 2000 Group Policy 6 21st Jun 2004 04:57 AM
Way to cycle registry values via group policy? =?Utf-8?B?SmFtZXMgRXJ2aW4=?= Microsoft Windows 2000 Group Policy 2 17th Feb 2004 04:31 PM
Need help implementing group policy to load registry values Andy Svendsen Microsoft Windows 2000 Group Policy 1 9th Dec 2003 11:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 AM.