Solved

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

Posted on 2016-08-11
12
70 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
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 24

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 23

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 24

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 24

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 22

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 24

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
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 (…
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…
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…

810 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