UNC path alias

I would like to configure an alias for the shared data location which could be changed from time to time.
Say current data is currently located on \\server1\share1 on windows 2008 R2server
I would like set a variable  DATAROOT  Set dataroot=\\server1\shared
And point all of my UNC paths to dataroot\path… instead of \\server1\share1
So next time when I changed shared server I don’t have to look for all UNC pointers in many files and just change  Set dataroot=\\server2\shared
My question is
1.      Where exactly do I SET dataroot statement in my default domain group policy ?
2.      How will UNC path syntax should look like when using dataroot instead of \\server1\share ?
leop1212Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kanti PrasadCommented:
Hi

Look at how to set the  Folder Redirection option

https://msdn.microsoft.com/en-us/library/cc786749(v=ws.10).aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wayne88Commented:
To answer your question:

1. To configure a new drive mapping or recreate a drive mapping, type a fully qualified UNC path for the network share (such as \\server\sharename, \\server\hiddenshare$, or \\server\sharename\foldername). Alternatively, you can use built-in Group Policy Preference variables by pressing F3 and selecting a variable from the Variable browser.

https://technet.microsoft.com/en-us/library/dn581924.aspx

2. I am not sure if you can directly apply a custom variable for UNC path through the GPO drive mapping UI.  This may help: http://blogs.technet.com/b/grouppolicy/archive/2009/05/13/environment-variables-in-gp-preferences.aspx
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.