Circle Posted April 22, 2005 Posted April 22, 2005 Hi folk,i just wrote a policy script (this .adm files) for 2k3. but the problem is, i have no 2k3 server so i don't know if it works. but i have to know if it works, because i want to give it to a friend, but i'm not sure if it works.so if someone has a little bit time, please give a look at it.i've made it first for nt4, for nt4 it works, but i saw that the code of the 2k3 policy scripts are different then the nt4 ones.CLASS USER CATEGORY !!Folder Redirection Settings" POLICY !!Redirect Application Data" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Application Data path" EDITTEXT VALUENAME "AppData" DEFAULT "\\servername\sharename\%username%\Application Data" REQUIRED EXPANDABLETEXT END PART END POLICY POLICY !!Redirect Cache" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Cache path" EDITTEXT VALUENAME "Cache" DEFAULT "\\servername\sharename\%username%\Local Settings\Temporary Internet Files" REQUIRED EXPANDABLETEXT END PART END POLICY POLICY !!Redirect Cookies" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Cookies path" EDITTEXT VALUENAME "Cookies" DEFAULT "\\servername\sharename\%username%\cookies" REQUIRED EXPANDABLETEXT END PART END POLICY POLICY !!Redirect Desktop" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Desktop path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Desktop" VALUENAME "Desktop" END PART END POLICY POLICY !!Redirect Desktop" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Favorites path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Favorites" VALUENAME "Favorites" END PART END POLICY POLICY !!Redirect History" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!History path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\History" VALUENAME "History" END PART END POLICY POLICY !!Redirect Local Application Data" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Local AppData path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Local Settings\Application Data" VALUENAME "Local AppData" END PART END POLICY POLICY !!Redirect Local Settings" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Local Settings path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Local Settings" VALUENAME "Local Settings" END PART END POLICY POLICY !!Redirect My Pictures" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!My Pictures path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\My Documents\My Pictures" VALUENAME "My Pictures" END PART END POLICY POLICY !!Redirect Personal (My Documents)" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Personal path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Personal" VALUENAME "Personal" END PART END POLICY POLICY !!Redirect Programs" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Programs path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Start Menu\Programs" VALUENAME "Programs" END PART END POLICY POLICY !!Redirect Recent" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Recent path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Recent" VALUENAME "Recent" END PART END POLICY POLICY !!Redirect NetHood" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!NetHood path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\NetHood" VALUENAME "NetHood" END PART END POLICY POLICY !!Redirect PrintHood" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!PrintHood path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\PrintHood" VALUENAME "PrintHood" END PART END POLICY POLICY !!Redirect SendTo" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!SendTo path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\SendTo" VALUENAME "SendTo" END PART END POLICY POLICY !!Redirect Start Menu" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Start Menu path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Start Menu" VALUENAME "Start Menu" END PART END POLICY POLICY !!Redirect Startup" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Startup path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Start Menu\Startup" VALUENAME "StartUp" END PART END POLICY POLICY !!Redirect Templates" KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" PART !!Templates path" EDITTEXT REQUIRED EXPANDABLETEXT DEFAULT "\\servername\sharename\%username%\Templates" VALUENAME "Templates" END PART END POLICY POLICY !!Exclude additional directories from roaming profile" KEYNAME "Software\Policies\Microsoft\Windows\System" PART !!List of folders to be excluded" EDITTEXT VALUENAME "ExcludeProfileDirs" DEFAULT "Enter folders separated by;" END PART END POLICY END CATEGORYCLASS USERif someone would like to test it, just copy the code into a textfile and save it as i.e. folderredirect.admtnx for the help
tguy Posted April 22, 2005 Posted April 22, 2005 I assume you don't have a copy of WIN 2K3 to install and test on your own? I'm not sure anyone would be really willing to install your security template on their server but good luck with it.
robgibson Posted May 6, 2005 Posted May 6, 2005 Hi Circle,I tried to load the file but got the following error (see attachment).I have also included a file that does load but doesn't work. I tried redirecting the Favorites folder but did not succeed. I believe there are two keys that need to be changed. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell FoldersandHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell FoldersRob
robgibson Posted May 6, 2005 Posted May 6, 2005 I couldn't seem to load the .adm file so if you want a copy please email me at rgibson@robgibosn.caRob
tarquel Posted May 7, 2005 Posted May 7, 2005 @Circle:There's no need for this I would have thought, as you can redirect certain folders easily in 2003 GP - Start Menu, My Docs, Desktop, Application Data.Unless I missed something from the script I too used NT 4, but the policy system works a bit differently in 2000/2003 (well, more than a bit different) and has many features already builtin that you don't have to write new .adm's for.At least I haven't so far Regards,N.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now