Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

August 06, 2009 12:00 AM

Two Tips When Redirecting Folders Via the Registry

Windows IT Pro
InstantDoc ID #102425
Rating: (1)
Downloads
102425.zip

I read with interest Apostolos Fotakelis's article "Redirect More Folders", which discusses how to redirect Windows system folders for which Group Policy doesn't provide native redirection. In my environment, I had used Group Policy to redirect the My Documents folder to the network, so I was eager to try Apostolos's registry edit technique to redirect other Windows system folders. After experimenting with redirecting the Favorites folder, I wanted to pass on a couple of useful tips not covered in the original article.

Tip 1. One helpful feature that Group Policy redirection provides is the ability to automatically move the Windows system folders' contents to the network. The registry edit method doesn't automatically do this. So, to move the Favorites folders' contents to the network, I adapted the code that Apostolos added to the logon script. Specifically, I added the lines highlighted by callout A in Listing 1.


Listing 1: Revised Code to Add to the Logon Script


Now when the logon script executes, the existing Favorites folders are copied from users' computers to the specified server. Afterward, they're removed from the local drive.

After all the Favorites folders have been copied onto the server, you can remove the code in Listing 1 from the logon script. Existing users will be set, and new users won't need it because they'll use the network-based Favorites folders from the start.

Tip 2. If the server containing the Favorites folders is unavailable or if users are working offline (e.g., on laptops disconnected from the network), users won't have access to their Favorites folders. Although Group Policy automatically makes redirected folders available offline when the server is unavailable, this doesn't occur if you use the registry edit method to redirect folders. Instead, users will need to right-click the Favorites folder on the network drive, and select Make Available Offline (Windows XP) or Always Available Offline (Windows Vista). To avoid a lot of calls from users, it's helpful to let them know how to work offline once the transition to the network-based Favorites folders is complete.

You can download the code in Listing 1 by clicking the Download the Code Here button at the top of the page. Note that adding the code in Listing 1 to the logon script is only one of five steps in the registry edit method. To learn about the other steps, see Apostolos's article "Redirect More Folders".

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.