#64285 - 2002-04-08 12:38 AM
anyone have a script for folder redirection?
|
Wes
Lurker
Registered: 2002-04-08
Posts: 4
Loc: CA
|
Hi, I am looking for a script to redirect terminal server users' temp internet files and Favorites to a different location. anyone know how to do this? i have all other folders redirected with win2k group policy...
thanks, Wes
|
|
Top
|
|
|
|
#64286 - 2002-04-08 03:52 AM
Re: anyone have a script for folder redirection?
|
Anonymous
Anonymous
Unregistered
|
TIF (aka Cache) and Favorites (aka Bookmarks) are shell folders just like anything else.
I use ScriptLogic rather than Shell Folders and ScriptLogic supports the redirection of the Cache and Favorites.
With KiXtart, simply modify the values directly under: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
The values are appropriately named: cache favorites
|
|
Top
|
|
|
|
#64287 - 2002-04-08 05:38 AM
Re: anyone have a script for folder redirection?
|
Wes
Lurker
Registered: 2002-04-08
Posts: 4
Loc: CA
|
thansk Brian! I'm actually very glad you replied -- I am currently using SCriptlogic to redirect Cache, but when I tried to also apply redirection for Favorites, it killed the favorites reg entry altogether! just cleared it out. it was a real pain to get it back for the one user I tested it with, luckily no one else logged in before I took it out of the SL config.
any idea why this would be? I was redirecting it to to a network share, the same way I do it with all the other folders in Group Policy and Scriptlogic.
thanks! Wes
|
|
Top
|
|
|
|
#64288 - 2002-04-08 07:55 AM
Re: anyone have a script for folder redirection?
|
Wes
Lurker
Registered: 2002-04-08
Posts: 4
Loc: CA
|
ok, I'm a little confused by my results here:
I'm testing this on myself, and I am a domain and enterprise admin.
I have created a login batch file for myself (wes.bat) which consists of the following:
kix32 admin
I also have an admin.kix file that has the following:
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main","Start Page","http://taubaunt01/","REG_SZ")
The registry write is successful, I check it in regedit and it has written it correctly. However, my Favorites are still mapped to the local documents and settings folder. any idea why the reg change doesn't affect the setting?
Also, will simple folder redirects like this autocreate a specified folder if it does not already exist, just like the GPO redirects do?
thanks! Wes
|
|
Top
|
|
|
|
#64289 - 2002-04-08 08:07 AM
Re: anyone have a script for folder redirection?
|
Anonymous
Anonymous
Unregistered
|
ScriptLogic will automatically create the destination folder for any operation, including such things as MS Office paths, folder redirection, etc.
It makes no sense why redirecting favorites would have 'killed' your reg value. I assume you're using the Folder Redirection tab?
The Internet tab will allow you to control the IE start page, so you shouldn't need to do that via a standard script.
Anyway, my suggestion would be that you post to the ScriptLogic - General forum over at www.scriptlogic.com, or call the technical support department. That is one benefit of a commercial product -- live support.
I'm sure your issue will be solved promptly. I'll be out of communication for a bit. Just arrived in New Orleans for Microsoft TechEd.
|
|
Top
|
|
|
|
#64290 - 2002-04-08 08:10 AM
Re: anyone have a script for folder redirection?
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11631
Loc: CA
|
|
|
Top
|
|
|
|
#64292 - 2002-04-08 08:29 PM
Re: anyone have a script for folder redirection?
|
Wes
Lurker
Registered: 2002-04-08
Posts: 4
Loc: CA
|
hi everyone, sorry about that, I copied the wrong script in. it should have been:
writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Favorites","\\servername\Staff\%username%\My Documents\My Favorites","REG_SZ")
NTDoc - thanks for the links but those all have to do with Group Policy redirection, which is working great -- my problem is with the Favorites folder which unfortunately is not covered under GP redirection :-(
Brian - I am using the Folder Redirection tab. I have the Favorites redirect set up just below the Cache redirect (Which is working just fine). Not sure why the Favorites redirect zeroed out the reg value like that... I will check the Scriptlogic site.
another thing I noticed is that originally I had the location set up using the @Staff folder off of our main file server share (I use the @ so that the Staff folder shows up first alphabetically for employees). anyways, when using that locatio with the Kix script, it writes the @ symbol to the register as thanks guys! Wes
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 302 anonymous users online.
|
|
|