Solved

Windows 7 Folder Redirection with VBScript

Posted on 2010-11-30
1
1,737 Views
Last Modified: 2012-06-21
Basic Question: Looking for an example VBScript that would do folder redirection (for the common windows folders, I consider these to be the default options in Group Policy) to a mapped drive for Windows 7 users.

Longer Story: Our users have file servers in their individual locations.  Off of the file server they get a user drive (W Drive for us).  We want to redirect the common windows folders to the user directory.  We had it applying via Group Policy but I need to change the way we do it for various reasons.
0
Comment
Question by:matt_karsten
1 Comment
 
LVL 51

Accepted Solution

by:
Bill Prew earned 500 total points
Comment Utility
This is quite easy to do in VBS, you just need to set the appropriate registry values for the folders you want to move.  Here's an example:

set WshShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop", "Z:\user1\Desktop", "REG_EXPAND_SZ"

Open in new window

The various subkeys are listed here:

http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html

~bp
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Hi Friends, These registry tweaks will help you optimizing your Windows 7 system for any VDI. This will improve the machine performanance and can be used on normal systems also. These are few registry tweaks which will add value by enhancing the …
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now