Group Policies Administrative Template, need help

G

Gabe Matteson

Hello,
I'm currently creating an ADM file for my group policies to add some
features that I need. One of them is to redirect the Users IE Favorites to
their home folder on the server.... the problem is, when I add the registry
path to the KEYNAME if it has spaces the policy will not show up, if I take
it out, then it will, does anyone know how to fix this? below is what I have
so far..also, how do i make it so that if they disable this policy it
reverts back to the default path "their local profile\favorites"?

#if VERSION >= 3
CLASS USER

CATEGORY !!strRedirectFavorites

KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\"

POLICY !!strEnableRedirection
EXPLAIN !!strHelp
VALUENAME "Enable"
VALUEON NUMERIC 1
VALUEOFF NUMERIC 0

PART !!strPart1 EDITTEXT
VALUENAME "Favorites"
END PART

END POLICY

END CATEGORY

#endif

[strings]
strRedirectFavorites="Internet Explorer Favorites"
strEnableRedirection="Favorites Directory Path"
strHelp="Allows you to specify the directory path that Internet Explorer
will use for it's favorites directory"
strPart1="Redirect favorites to:"
 
D

David Fisher [MSFT]

Hello Gabe.

Policies included with Windows 2000 only set registry keys and values in one
of these four reserved trees:
HKEY_LOCAL_MACHINE\Software\Policies
HKEY_CURRENT_USER\Software\Policies
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies


The first two are preferred. All four trees are secure, and cannot be
modified by a user who is not an administrator. When Group Policy changes
for any reason, these trees are wiped clean and the new policies are then
rewritten.

Your custom adm policies do not respect these special trees, and can write
to any part of the registry. After such a policy is applied, it persists
until the value is intentionally reversed, either by a counteracting custom
adm-style policy, or by editing the registry.

David Fisher
Enterprise Platform Support
 

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