none
Cannot Copy File with Group Policy Preferences

    Question

  • Hi,

    I am trying to use a Group Policy Preference to copy a simple text file from a network share to a folder at the root of 'C:\' on the clients. It is not happening. I created the preference in the computer section of the GPO. It is set to create, as the file does not already exist on the client, with the archive bit on.

    Source: \\server.domain.com\folder\fileshare\file.txt

    Destination: C:\folder

    GPResult shows the clients are getting the GPO, but it seems as if that one setting and another is not being applied. I have no idea why this isn't working when other parts of the GPO are being applied. I read the documentation on the Technet page, but I must have missed something.

    Any ideas why this might not be working?

    Thanks


    Jason Watkins MCSE, MCSA, MCDBA, CCNA

    Tuesday, March 03, 2015 6:56 PM

Answers

  • I think the computer account will need permission to connect to the share if the preference is in the computer section of the GPO.
    • Marked as answer by N74JW Tuesday, March 03, 2015 10:35 PM
    Tuesday, March 03, 2015 7:41 PM
  • Destination: C:\folder\file.txt

    try that

    • Marked as answer by N74JW Tuesday, March 03, 2015 10:34 PM
    Tuesday, March 03, 2015 8:57 PM

All replies

  • Does the computer have read access in the share and NTFS permissions?
    Tuesday, March 03, 2015 7:20 PM
  • If I log in with my domain account, which is a local admin on the client, I can access the share without any obstacles. The clients typically log in with local user accounts, but that shouldn't matter, right? This part of the GPO applies before the user logs into Windows. At least ,that is my understanding.

    Thanks


    Jason Watkins MCSE, MCSA, MCDBA, CCNA

    Tuesday, March 03, 2015 7:32 PM
  • I think the computer account will need permission to connect to the share if the preference is in the computer section of the GPO.
    • Marked as answer by N74JW Tuesday, March 03, 2015 10:35 PM
    Tuesday, March 03, 2015 7:41 PM
  • I tried with a new share that has the group "Domain Computers" with the Read/List Contents permission applied.

    Thanks


    Jason Watkins MCSE, MCSA, MCDBA, CCNA

    Tuesday, March 03, 2015 7:55 PM
  • Destination: C:\folder\file.txt

    try that

    • Marked as answer by N74JW Tuesday, March 03, 2015 10:34 PM
    Tuesday, March 03, 2015 8:57 PM
  • I'll give that a try. Thanks! 

    Jason Watkins MCSE, MCSA, MCDBA, CCNA

    Tuesday, March 03, 2015 9:05 PM
  • I think that did it! That and using a share where the group "Domain Computers" has read access. Listing the actual file name in the destination is something I would have never though to do.

    Thanks!


    Jason Watkins MCSE, MCSA, MCDBA, CCNA

    Tuesday, March 03, 2015 10:34 PM
  • It caught me out before your not alone ;)
    Tuesday, March 03, 2015 11:12 PM
  • > Computers" has read access. Listing the actual file name in the
    > destination is something I would have never though to do.
     
    ...unless the path ends with an "\", it IS a file name, so if you had
    "C:\Folder" as the target, check your C:\ drive for a file called
    "Folder" :)
     

    Martin

    Mal ein GUTES Buch über GPOs lesen?

    NO THEY ARE NOT EVIL, if you know what you are doing: Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))
    Wednesday, March 04, 2015 11:13 AM