PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Add a Registry Key via Group Policy

 
 
bjorgenson@charter.net
Guest
Posts: n/a
 
      18th Apr 2006
How can I add a new registry key using group policy? I don't want to
change an existing key but add a new one.

Is there a way using ADM templates? If so, what is the syntax?

This is what I want to add:

HKEY_CLASSES_ROOT\Folder\shell\PC Info\command

VALUE=c:\my program.exe

 
Reply With Quote
 
 
 
 
Mark Heitbrink [MVP]
Guest
Posts: n/a
 
      18th Apr 2006
Hi,

(E-Mail Removed) schrieb:
> How can I add a new registry key using group policy? I don't want to
> change an existing key but add a new one.


Create an own ADM Template.

> Is there a way using ADM templates? If so, what is the syntax?


http://www.oreilly.de/catalog/winsys...pter/ch08.html

> This is what I want to add:
> HKEY_CLASSES_ROOT\Folder\shell\PC Info\command
> VALUE=c:\my program.exe


HKClasses Root is just a link to:
HKLM\Software\Classes

If your type of VALUE is the (Default) inside the registry
you have to define it like that: ""
(no name given, but enclosed in Qoutes)

----- shell.adm -----
CLASS MACHINE
CATEGORY "give it a name you want"
POLICY "give it a name you want"
KEYNAME "SOFTWARE\Classes\Folder\shell\PC Info\command"
PART "whatever you want to set:" EDITTEXT
VALUENAME ""
END PART
END POLICY
END CATEGORY

----- shell.adm -----

Make sure, that you change the View settings after importing
the ADM Template and uncheck in the filtering:
"... only full managed"

Or just simply use the Registry Extension from DesktopStandard.
(Freeware) than you donīt have to create an ADM.

Mark
--
Mark Heitbrink - MVP Windows Server
Homepage: www.gruppenrichtlinien.de
extend GPO: www.desktopstandard.com
PM: Vorname@Homepage, Versende-Adresse wird nicht abgerufen.
 
Reply With Quote
 
bjorgenson@charter.net
Guest
Posts: n/a
 
      19th Apr 2006
I'm confused on the PART section. The oreily.de site does not explain
it well enough. What would I use in this case? I don't want a checkbox
or anything like that, just an EDITTEXT field to be able to change the
path of my executable.

Thanks,
Brian

 
Reply With Quote
 
bjorgenson@charter.net
Guest
Posts: n/a
 
      19th Apr 2006
OK, I think I have it figured out but I do want to change my default
key value. The default value has to remain a REG_SZ.

 
Reply With Quote
 
bjorgenson@charter.net
Guest
Posts: n/a
 
      19th Apr 2006
Nevermind, figured it out. This is what I used:

CLASS MACHINE
CATEGORY "PC Info"
POLICY "PC Info Policy"
EXPLAIN !!SetPath
KEYNAME "SOFTWARE\Classes\Folder\shell\PC Info\command"
PART !!PathName EDITTEXT
Valuename ""
END PART
END POLICY
END CATEGORY

[strings]
SetPath="Enter path to location of executable"
PathName="Enter path:"

Thanks for your help

 
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
Question about group policy/security policy registry settings =?Utf-8?B?anN0aWMwNEBjcC5jZW50ZW5uaWFsY29sbGVnZS5j Microsoft Windows 2000 Group Policy 1 28th May 2006 03:53 PM
Add Registry Key using Group Policy =?Utf-8?B?SmFzb24gUnlvbg==?= Windows XP General 3 14th Feb 2005 07:30 PM
Registry Key Group Policy =?Utf-8?B?UmFqZWV2IEFnYXJ3YWw=?= Microsoft Windows 2000 Active Directory 0 7th Dec 2004 02:19 PM
Modifying Registry Via Group Policy Ben Blackmore Microsoft Windows 2000 Active Directory 2 17th Sep 2003 08:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.