Copy Files From Domain Controller With Group Policy

Here is what we are trying to do. We have 2 domain controllers at 2 separtate locations. As part of the group policy we use folder redirection to copy some folders from \\DC1\folder. Say that DC1 is offline, when a user uses DC2 to log on, he cannot get to \\DC1\folder. Is there a way to reference the path of the domain controller you are logged into? So that the group policy folder redirection path would be \\(domain controller that authenicated me)\folder? Both servers have the same folder structure just different server names.
Thanks in advance for your awsome suggestions.
portillosjohnAsked:
Who is Participating?
 
Steven CarnahanNetwork ManagerCommented:
Have you tried using the environment variable?

\\%LOGONSERVER%\folder
0
 
mlongohCommented:
I agree with pony10us, try the environment variable.  If that doesn't work for you, you can always setup and use DFS so that the data is synchronized on the two DCs.
0
 
David Johnson, CD, MVPOwnerCommented:
DFS is the way to go.. This way the data stays synced and you don't need to manually copy the files over.

DFS Setup Guide
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Steven CarnahanNetwork ManagerCommented:
I don't think the issue is the replication between DC1 and DC2. The issue as I understood it was this:

User logs on and connects using DC1 as logon server then copies files from DC1 to their folder.

Next time user logs on they connect using DC2 as logon server but the GPO points specifically at DC1 to copy the files to their folder even though the files ALSO exist on DC2 but DC1 is down for some reason so no files copied

By using the environment variable it will copy the files from whatever DCx they connect to to their folder.

Am I correct portillosjohn?
0
 
portillosjohnAuthor Commented:
That is correct pony10us.
0
 
portillosjohnAuthor Commented:
Simple and effective.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.