Copy Files From Domain Controller With Group Policy

Posted on 2012-09-20
Last Modified: 2012-10-05
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.
Question by:portillosjohn
    LVL 25

    Accepted Solution

    Have you tried using the environment variable?

    LVL 12

    Expert Comment

    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.
    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP
    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
    LVL 25

    Expert Comment

    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?

    Author Comment

    That is correct pony10us.

    Author Closing Comment

    Simple and effective.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
    [b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    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…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now