Solved

Windows 7 Folder Redirection with VBScript

Posted on 2010-11-30
1
1,845 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 55

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 34241746
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
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). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

734 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