none
Copy a file to all users' desktops.

    Question

  • 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\scripts\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.

    Wednesday, December 24, 2014 2:24 AM

Answers

  • Hi,

    >>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

    I did a test in my lab and it works.

    Best regards,
    Frank Shen













    Thursday, December 25, 2014 3:17 PM
    Moderator
  • 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!

    Saturday, December 27, 2014 9:29 AM

All replies

  • Hi,

    >>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

    I did a test in my lab and it works.

    Best regards,
    Frank Shen













    Thursday, December 25, 2014 3:17 PM
    Moderator
  • 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.


    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>

    Strange!

    Saturday, December 27, 2014 9:08 AM
  • 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!

    Saturday, December 27, 2014 9:29 AM