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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

favorites redirection

Status
Not open for further replies.

DougInCanada

Technical User
Feb 1, 2004
98
CA
Hello,

I'm working on a logon script to run in a GPO for users to redirect folders (ie: desktop, My Documents and Favorites) to a secure folder on a file server.

The desktop and My documents get redirected great from the GPO, but I've looked through the forum and found several references to running a reg file to redirect the Favorites.

I've incorporated this approach in my logon script as follows ("X" has already been mapped as a drive for the user earlier in the script):

Dim tempiepath
tempiepath = "HKCU\Software\Microsoft\Windows\"

' This code will redirect the user's IE Favorites
'=====================================
WSHShell.RegWrite tempiepath & "CurrentVersion\Explorer\Shell Folders\Favorites","X:\Favorites","REG_SZ"

Set tempiepath = nothing

When I run this script, "X" is mapped, but the reg entry didn't take effect.

Is there another way to redirect thye Favorites folder or am I missing something with my reg entry?

Any help is appreciated.
 
I believe you need to replace the value of X with the actual UNC path.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Mark,

I have tried that (and would prefer to use a UNC path) but the change will not take effect when I go in and check the registry. It does seem to work for a mapped drive, hence "X" and the fact that I have to map "X" first before the reg edit.

But am I going about it in the right fashion (reg entry) or is there another way to do this?

Will it create a Favorites folder if it doesn't exist?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top