Announcement

Collapse
No announcement yet.

Copy a file to all users' desktops.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Copy a file to all users' desktops.

    I want to copy a PDF file to all users' desktops, so I created a GPP to do this and it works if I place the source file, the PDF, on a shared folder.

    However, my GPP will span a large network, across half the globe, thus having the PDF on a file server in one location will take a long time to copy to users' workstations in another location. I thus would like to replicate the PDF file along all the DCs using the NETLOGON folder.

    I thus placed the file in the following folder on my local domain controller:

    C:\Windows\SYSVOL\sysvol\brightstarcorp.com\script s\APAC\Files for APAC users

    In my GPP, I used the following reference for the location of the PDF file:

    Source: %logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf
    Target: %userprofile%\desktop\APAC IT Support Contact Details final.pdf

    Is this the correct way to do this?

    My GPP is created on a Win2012 server for Win2008 domain controllers and Win7 clients.
    |
    +-- JDMils
    |
    +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
    |

  • #2
    Re: Copy a file to all users' desktops.

    Originally posted by JDMils View Post
    I want to copy a PDF file to all users' desktops, so I created a GPP to do this and it works if I place the source file, the PDF, on a shared folder.

    However, my GPP will span a large network, across half the globe, thus having the PDF on a file server in one location will take a long time to copy to users' workstations in another location. I thus would like to replicate the PDF file along all the DCs using the NETLOGON folder.

    I thus placed the file in the following folder on my local domain controller:

    C:\Windows\SYSVOL\sysvol\brightstarcorp.com\script s\APAC\Files for APAC users

    In my GPP, I used the following reference for the location of the PDF file:

    Source: %logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf
    Target: %userprofile%\desktop\APAC IT Support Contact Details final.pdf

    Is this the correct way to do this?

    My GPP is created on a Win2012 server for Win2008 domain controllers and Win7 clients.
    Yep.

    DFS could also be an option.

    Don't you have an intranet where you could store the IT team contact details?

    Comment


    • #3
      Re: Copy a file to all users' desktops.

      The HelpDesk want a file copied to the users' desktops for when they are away from the network and can not connect via VPN.

      When I used a local server as the source, it works, but when I try to use the Netlogon share, it does not.
      |
      +-- JDMils
      |
      +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
      |

      Comment


      • #4
        Re: Copy a file to all users' desktops.

        When I put this in Explorer on the test machine:

        %logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf

        I get the error:

        "Windows cannot access \\MyADServer01\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf"

        But when I put this into Explorer"

        %logonserver%\NetLogon\APAC\Files for APAC users\

        ....it opens the folder (replacing the %LOGONSERVER% with the domain controller name "MyADServer01" and displays the file. I can then double-click the file and open it.

        Using the DC name or not, with the filename in the Explorer address bar, it will not open the file.

        Strange!

        Event Viewer:

        Log Name: Application
        Source: Group Policy Files
        Date: 27/12/2014 7:39:38 PM
        Event ID: 4098
        Task Category: (2)
        Level: Warning
        Keywords: Classic
        User: SYSTEM
        Computer: TestWS.mydomain.com
        Description:
        The user 'APAC IT Support Contact Details final.pdf' preference item in the 'APAC - Add IP Support Document to Workstation {E31F55EA-EF46-400B-A77A-012ECF400EC7}' Group Policy object did not apply because it failed with error code '0x80070002 The system cannot find the file specified.' This error was suppressed.
        Event Xml:
        <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
        <System>
        <Provider Name="Group Policy Files" />
        <EventID Qualifiers="34305">4098</EventID>
        <Level>3</Level>
        <Task>2</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-12-27T08:39:38.000000000Z" />
        <EventRecordID>258023</EventRecordID>
        <Channel>Application</Channel>
        <Computer>TestWS.mydomain.com</Computer>
        <Security UserID="S-1-5-18" />
        </System>
        <EventData>
        <Data>user</Data>
        <Data>APAC IT Support Contact Details final.pdf</Data>
        <Data>APAC - Add IP Support Document to Workstation {E31F55EA-EF46-400B-A77A-012ECF400EC7}</Data>
        <Data>0x80070002 The system cannot find the file specified.</Data>
        </EventData>
        </Event>
        |
        +-- JDMils
        |
        +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
        |

        Comment


        • #5
          Re: Copy a file to all users' desktops.

          I got it to work. I had to change the security on the file from:

          - Read & Execute
          - Read

          ....to....

          - Modify
          - Read & Execute
          - Read
          -Write

          Thanks Frank!
          |
          +-- JDMils
          |
          +-- Regional Systems Engineer, DotNet programmer & Jack of all trades
          |

          Comment


          • #6
            Re: Copy a file to all users' desktops.

            Well done, and thanks for posting back with the solution
            Tom Jones
            MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
            PhD, MSc, FIAP, MIITT
            IT Trainer / Consultant
            Ossian Ltd
            Scotland

            ** Remember to give credit where credit is due and leave reputation points where appropriate **

            Comment

            Working...
            X