Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom ADM

Status
Not open for further replies.

james1990

Technical User
Jan 21, 2005
14
GB
Hi everyone,

Sorry if this isn't the correct forum, but I couldn't find anything else that I thought would be suitable.

I'm currently developing a custom GPO to redirect the Favourites and My Pictures folders to a network drive.

The ADM looks as if it works, ie I can configure the setting in GP but when I test with a user it doesn't apply.

Here is the code:

================================

CLASS USER

CATEGORY !!UserProfiles

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


POLICY !!UserProfiles_MyPictures
Part !!UserProfiles_MyPicturesPath EDITTEXT REQUIRED EXPANDABLETEXT
Default !!UserProfiles_MyPicturesPathDefault
Valuename "My Pictures"
End Part
End Policy


POLICY !!UserProfiles_Favourites
Part !!UserProfiles_FavouritesPath EDITTEXT REQUIRED EXPANDABLETEXT
Default !!UserProfiles_FavouritesPathDefault
Valuename "Favourites"
End Part
End Policy

END CATEGORY


[strings]

UserProfiles="User Profiles through System Policies"
UserProfiles_MyPictures="Path to My Pictures Folder"
UserProfiles_MyPicturesPath="Enter Path to My Pictures folder"
UserProfiles_MyPicturesPathDefault="%USERPROFILE%\My Pictures"


UserProfiles_Favourites="Path to Favourites Folder"
UserProfiles_FavouritesPath="Enter Path to Favourites folder"
UserProfiles_FavouritesPathDefault="%USERPROFILE%\Favourites"

=================================

Am I missing something here really simple?

Many thanks in advance, James
 
I do not believe the Part and Default lines need the "!!"

EX:
Part UserProfiles_MyPicturesPath EDITTEXT REQUIRED EXPANDABLETEXT
Default UserProfiles_MyPicturesPathDefault
 
Also, it is Favorites. not favourites, unless you are using another lanuguage; say UK?
 
Thanks for your reply.

I've tried without the !! and it still didn't work.

Any other suggestions? All I'm trying to do is redirect the My Pictures folder! Unfortunately I can't do this under My Documents redirection.

I am in the UK hence favourites!!!

Cheers
James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top