Solved

How to update file locations after switching storage location, network wide.

Posted on 2004-10-15
8
215 Views
Last Modified: 2013-11-15
We are getting some NAS, presently our docs & departmental data is held on a few particular servers

i.e \\server001\departments\marketing\

our user docs are mapped ( as q:\) and pointed to a location on the \\server001\docs\username directory
will we have to go into each user name and change the mapped drive location of all their files or can this be done in a batch way?

the users have a mixture of roaming and static profiles.

Any suggestions / Comments would be most welcome

0
Comment
Question by:gigeorge
8 Comments
 
LVL 2

Expert Comment

by:FatherErvin
ID: 12318203
Is your group running Active dir?
0
 
LVL 20

Expert Comment

by:DVation191
ID: 12319860
You could write a reg file that contains the appropriate data, then use a logon script to execute it and make the change of the My Documents folder to the new location.

The path to the My Documents folder is stored in the following registry key, where path is the complete path to your storage location:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Value Name: Personal
Value Type: REG_SZ
Value Data: path
0
 

Author Comment

by:gigeorge
ID: 12319901
active dir yes !
0
 
LVL 17

Expert Comment

by:Jared Luker
ID: 12320712
Are you mapping their user drives through the login script, or putting the path into their account in AD?
0
 
LVL 12

Accepted Solution

by:
Mazaraat earned 250 total points
ID: 12321843
2 ways to do it either use Group Policies, or a logon script.

Group Policy:
OPen the policy you want to edit(or create a new one)
Expand User Configuration->Windows Settings->Folder Redirection
Here you can change the path to the My Documents

Link on how-to:
http://www.windowsdevcenter.com/pub/a/windows/2004/08/24/folder_redirect.html
*********

Logon script you would add something like this:

'--------------------8<--------------------
' Change new path here
strMyDocPath = "U:\"
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\" _
   & "Explorer\Shell Folders\Personal", strMyDocPath, "REG_SZ"
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\" _
   & "Explorer\User Shell Folders\Personal", strMyDocPath, "REG_SZ"
'--------------------8<---------------------


0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Lets start to have a small explanation what is VAAI(vStorage API for Array Integration ) and what are the benefits using it. VAAI is an API framework in VMware that enable some Storage tasks. It first presented in ESXi 4.1, but only after 5.x sup…
Are you looking to recover an email message or a contact you just deleted mistakenly? Or you are searching for a contact that you erased from your MS Outlook ‘Contacts’ folder and now realized that it was important.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

939 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

4 Experts available now in Live!

Get 1:1 Help Now