Solved

Redirect traffic that goes to my old windows server to a new windows server

Posted on 2016-08-11
12
77 Views
Last Modified: 2016-09-06
I am replacing my old Windows server with a new box.
How do I redirect traffic that goes to my old windows server to a new windows server.

Some clients have mapped drives to the old server which I can remap with GPO but how do I redirect requests like \\oldserver\sharename
to \\newserver\sharename

my new server is Windows 2012 R2.
0
Comment
Question by:ie0
[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
12 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 41753407
i assume you have an AD domain in place as you mentioned GPO was applied for drive mapping. i also assume your old and new servers have different IP addresses.

if no one intends to use the old server or the old server is to be offline at all, a simple solution is to modify DNS and/or WINS settings to point the old server directly to the new server's IP.

be aware this way the network share names have to be kept as they were.
0
 

Author Comment

by:ie0
ID: 41753597
What kind of change in DNS?
Thanks.
0
 
LVL 25

Expert Comment

by:Lionel MM
ID: 41753657
An easy way to fix this is to run this command on the OLD server "net share" (without the " "). That will give you a list of all the shares on the old server. You can then use that list to create a batch file to re-create the shares on the NEW Server like this
:BackupShare
Set ShareName=SrvBackup
Set User=Bob
MD D:\Data\%ShareName%
Net Share %ShareName%=D:\Data\%ShareNamer% /Grant:%User%,Full /Grant:"Domain Admins",Full /Remark:"D:\Data\%ShareName%"

That will create directory at D:\Data\SrvBackup and a share named SrvBackup with full control share permissions for Bob and Domain Admins. You can then use this template to re-create the rest of the directories and then share them and then assign them share permissions.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 24

Expert Comment

by:Brian B
ID: 41753762
If the old server is going to be gone completely, you can use the DNS administration tool on your domain controller to find the references to the old server. Edit the reference and change it to the IP address of the new server.

However, I would suggest at the same time as the above, it is better to notify everybody that the old server is going away as of a given date. Give some instructions on how to change any shortcuts and let them fix it themselves. Otherwise you will find yourself faced with never being able to get rid of the old shortcuts because people keep using them and as time goes on having a whole bunch of old entries in your DNS and elsewhere.
0
 

Author Comment

by:ie0
ID: 41753784
Lionel,
Does this mean \\olserver\sharname will now  be redirect to \\newserver\sharename?
0
 
LVL 25

Expert Comment

by:Lionel MM
ID: 41753806
Yes, let say you have a logon script that creates a network connection to \\old-server\share-name1 then once you create the share share-name1 on the new server all you do is change the net use in the logon script and it will connect to the new server and the user will use the same drive letter. Also if you use GPO to make network connections then you simply change the server name there and it changes without the users having to do anything different.
0
 

Author Comment

by:ie0
ID: 41753816
Lionel,
does this mean the old server has to be online?
Thanks.
0
 
LVL 25

Accepted Solution

by:
Lionel MM earned 500 total points
ID: 41753835
no -- once you have moved the data to the new server and once you have created the new folders, shared them, and changed how your users connect to those shares the old server is not needed
0
 
LVL 23

Expert Comment

by:yo_bee
ID: 41753970
To add to LION suggestion you can also achieve this by using Group Policy Preferences to remove all the network map shares and push new share mappings out to the users.

This process gets you away from having to deal with scripts.  If you do not have familiarity with scripting this is a good process to implement.
Here is a KB from MS that shows you the steps.
https://technet.microsoft.com/en-us/library/cc770902(v=ws.11).aspx
https://blogs.technet.microsoft.com/askds/2009/01/07/using-group-policy-preferences-to-map-drives-based-on-group-membership/

Either way it can be accomplished, but it is a good time to start looking at GPP to handle a lot of the mundane scripting and it also allows others to easily make mods without have to learn the custom script that an Admin created.



Here is an example of my GPO for Mapping drives
Img1
0
 
LVL 25

Expert Comment

by:Lionel MM
ID: 41785960
Answers were provided after the comment you are selecting as an answer showing that that comment was not sufficient. At best that comment should get an assisted answer however other answers address the more specific questions asked like ID: 41753657, ID: 41753806, and ID: 41753970.
0
 

Author Closing Comment

by:ie0
ID: 41786114
Thank you.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
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 locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

630 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