Jump to content

Recommended Posts

Posted (edited)

This active directory template is meant to redirect the user shell folders to a new location, it used to work but ive had to delete the policy and remake it

 

As of remaking the policy and reattaching the template it hasn't picked up the settings from the template (the GPO settings tab just shows as completely empty under both computer and user)

 

Heres the code:

; Performs Folder Redirection for Favorites and Cookies

CLASS USER

CATEGORY !!ShellSettings

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

POLICY !!UserFolder
EXPLAIN !!Redirect_Explain 

PART !!Redirect_Tip1 TEXT
END PART
PART !!Recent_location EDITTEXT EXPANDABLETEXT
DEFAULT "H:\Redirects\Recent"
VALUENAME Recent
END PART
PART !!Redirect_Tip2 TEXT
END PART
PART !!History_location EDITTEXT EXPANDABLETEXT
DEFAULT "H:\Redirects\History"
VALUENAME History
END PART
PART !!Redirect_Tip3 TEXT
END PART
PART !!Favorites_Location EDITTEXT REQUIRED EXPANDABLETEXT
DEFAULT "H:\Redirects\Favorites"
VALUENAME Favorites
END PART
PART !!Redirect_Tip4 TEXT
END PART
PART !!Cookies_location EDITTEXT EXPANDABLETEXT
DEFAULT "H:\Redirects\Cookies"
VALUENAME Cookies
END PART
PART !!Redirect_Tip5 TEXT
END PART
PART !!NetHood_location EDITTEXT EXPANDABLETEXT
DEFAULT "%USERPROFILE%\NetHood"
VALUENAME NetHood
END PART
PART !!Redirect_Tip6 TEXT
END PART
PART !!PrintHood_location EDITTEXT EXPANDABLETEXT
DEFAULT "%USERPROFILE%\PrintHood"
VALUENAME PrintHood
END PART
PART !!Redirect_Tip7 TEXT
END PART
PART !!SendTo_location EDITTEXT EXPANDABLETEXT
DEFAULT "H:\Redirects\SendTo"
VALUENAME SendTo
END PART
PART !!Redirect_Tip8 TEXT
END PART
PART !!Templates_location EDITTEXT EXPANDABLETEXT
DEFAULT "H:\Redirects\Templates"
VALUENAME Templates
END PART
END POLICY

END CATEGORY


[strings]
ShellSettings="Extra Shell Folder Redirects"
UserFolder="User Folder Shell Redirects"
Redirect_Explain="Used to Redirect Folders not included in Standard GPO Redirection.\n\nProfile Folder Contents\n\nApplication data: 

Program-specific data--for example, a custom dictionary. Program vendors decide what data to store in the User profile 

folder.\nCookies: User information and preferences.\nDesktop: Desktop items, including files, shortcuts, and folders.\nFavorites: 

Shortcuts to favorite locations on the Internet.\nLocal Settings: Application data, History, and Temporary files.\nMy Documents: User 

documents.\nMy Pictures: User picture items.\nNetHood: Shortcuts to My Network Places items.\nPrintHood: Shortcuts to printer folder 

items.\nRecent: Shortcuts to the most recently used documents and accessed folders.\nSendTo: Shortcuts to document-handling 

utilities.\nStart Menu: Shortcuts to program items.\nTemplates: User template items."
Redirect_Tip1="Specify Location for Recent"
Redirect_Tip2="Specify Location for History"
Redirect_Tip3="Specify Location for Favorites"
Redirect_Tip4="Specify Location for Cookies"
Redirect_Tip5="Specify Location for NetHood"
Redirect_Tip6="Specify Location for PrintHood"
Redirect_Tip7="Specify Location for SendTo"
Redirect_Tip8="Specify Location for Templates"
Recent_location="Recent Location"
History_location="History Location"
Favorites_Location="Favorites Location"
Cookies_location="Cookies Location"
NetHood_location="NetHood Location"
PrintHood_location="PrintHood Location"
SendTo_location="SendTo Location"
Templates_location="Templates location"

 

What is wrong with that?

Edited by mrbios
  • Thanks 1
Posted

Normally if you try and import a custom ADM and it has an error, it will give you a clue as to which line is causing the problem.

 

You can then open the ADM template using Notepad and navigate directly to the line in question. Edit > Go To...

Posted

It didn't pop up and say it had any errors, it just applied fine but without anything actually working.

 

I don't have an "edit > go to.." just edit then nothing, unless im thinking of somewhere else

Posted

That's a bit of mystery then. I presume the policy is based on per user and not per computer? Have you tried creating a new temporary OU and GPO to go with it? It could be conflicting with something else possibly.

 

The Edit > Go To... in Notepad - well it's available on 2003 Server (what I am using at the moment) and I believe XP too.

Posted
I can't find the "go to" bit you speak of, this is on server 2003 and xp too, I've tried creating a new GPO a few times with no luck, applied to different OUs too, i might just try rolling on some .reg file or something i guess in order to change the settings rather than doing it by gpo
Posted
Have you tried taking off the filter which will only show settings that can be fully managed? (Click on Administrative Templates then View -> Filtering -> Untick the Fully Managed box)
  • Thanks 1
Posted
Have you tried taking off the filter which will only show settings that can be fully managed? (Click on Administrative Templates then View -> Filtering -> Untick the Fully Managed box)

 

ahhhh you star, that's what i was looking for, cheers :D

 

It's funny how something that seems so complicated can end up being so simple

Posted

A silent reg install could be the alternative. I would try running it manually on one machine first to see whether it works, or whether there are restrictions in place stopping it being applied. You should check the event logs for this.

 

Edit: Good job cache, now why didn't I think of that? :)

Posted

Am I right in thinking this adm will redirect a users temporary internet files to their h:?

not c:\doc settings\username ?

Posted

gah Why didn't I find this one before! I was battling with this last night and did a silent reg install in a batch file in the end.

 

cheers! :) definetly saved.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...