Solved

Redirect shared folder to new server

Posted on 2008-10-14
4
521 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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
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:…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

623 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