Solved

Redirect shared folder to new server

Posted on 2008-10-14
4
520 Views
Last Modified: 2009-07-29
I am in the process of migrating from Small Business Server 2003 to a multi server, Windows Server 2008 domain. All of the public shared files are on the old Small Business Server 2003 share, which are accessed by shortcuts on each user's desktops to "\\vls-server\docs". My new file server is called vls-fileserver rather than vls-server. Is there a way to redirect the users requests  to \\vls-server\docs to \\vls-fileserver\docs without having to change everyone's shortcuts?
0
Comment
Question by:vls-derek
[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
  • 2
4 Comments
 
LVL 6

Expert Comment

by:JanSchotsmans
ID: 22715596
If the shortcut is on everyones desktop, you could use a login script to swap the old shortcut out with a new one rather easely.
If its on each users desktop make a script that overwrites the file in:

%HOMEPATH%\%username%\desktop\shortcut.lnk
%USERPROFILE%\%username%\desktop\shortcut.lnk

or if its in the All Users folder:

%ALLUSERSPROFILE%\Desktop\shortcut.lnk


0
 
LVL 24

Expert Comment

by:ryansoto
ID: 22715606
Nope because the physical path changes you need to update the method they use to get there...
mapped drives, shortcuts, etc.
You can create a new shortcut and place it on desktop
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_23563939.html
0
 

Author Comment

by:vls-derek
ID: 22715673
I thought of a login script to add new shortcuts, but replacing will be difficult as the shortcut names are inconsistent.

Any other thoughts? If not, this will have to do.
0
 
LVL 6

Accepted Solution

by:
JanSchotsmans earned 250 total points
ID: 22715783
I guess you could read out the path thats in the shortcut and if it matches the old one, replace it:

http://www.experts-exchange.com/Programming/Misc/Q_21814142.html

In that thread it explains how you can do this with known shortcuts, but I bet you can do some wildcarding for it to scan all shortcuts in the folder:
like:

set link = shell.CreateShortcut(%userprofile\%username\*.lnk)
if link.TargetPath = TheOldLocation then
          link.TargetPath = TheNewLocation
          link.Save
end if
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

If you are a user of the discontinued Microsoft Office Accounting 2008 (MSOA) and have to move to a new computer running Windows 8, you will be unhappy to discover that it won't install.  In particular, Microsoft SQL Server 2005 Express Edition (SSE…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

738 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