Page 1 of 1 1
Topic Options
#64285 - 2002-04-08 12:38 AM anyone have a script for folder redirection?
Wes Offline
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
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 Offline
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 Offline
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
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 Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
Wes,

I don't use ScriptLogic, but the key you set there will only set your HOME PAGE not where Favorites are located. Please review the correct registry setting to enable a folder redirection.

Folder Redirection Feature in Windows (Q232692)

The Folder Redirection Feature Does Not Function (Q274789)
Registry Settings for Folder Redirection in Windows (Q242557)

HOW TO: Dynamically Create Secure Redirected Folders By Using Folder Redirections (Q274443)

Enabling the Administrator to Have Access to Redirected Folders (Q288991)

Top
#64291 - 2002-04-08 09:44 AM Re: anyone have a script for folder redirection?
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
As far as live support goes, the responses I get from here are almost real-time [Smile]
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

Top
#64292 - 2002-04-08 08:29 PM Re: anyone have a script for folder redirection?
Wes Offline
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
#64293 - 2002-04-08 09:07 PM Re: anyone have a script for folder redirection?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I believe since '@' is a special character, you will have to use '@@' if you want to write that particlar character.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.056 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org