Solved

copy entire contents of a folder using group policy

Posted on 2013-11-25
5
1,274 Views
Last Modified: 2013-12-02
Hello:

I am trying to use GPO > computer configuration > Preferences > Windows setting > Files
to copy all the files inside a folder to another destination.

Using Action
source file:  \\servername\templates\*.*  
destination:  c:\templates\

For some reason it's not working.  Am I missing a setting.
0
Comment
Question by:pllr
  • 3
  • 2
5 Comments
 
LVL 53

Expert Comment

by:McKnife
ID: 39676885
Hi.

Let's start basic trouble shooting:
-is the source accessible by the computer account of your test workstation? (read access)
-is the destination accessible (write access)?
-did you do a gpresult /h resultsfile.html to see if the policy even applied and the settings got processed?
-can you distribute single files this way?
-did you try ...\templates\* as well?

We should find it very soon.
0
 

Author Comment

by:pllr
ID: 39678570
Thanks McKnife...

RE:

-is the source accessible by the computer account of your test workstation? (read access)
YES it has domain user access

-is the destination accessible (write access)?
Yes same as above

-did you do a gpresult /h resultsfile.html to see if the policy even applied and the settings got processed?
I ran a GPRESULT /R not /h...I'lldo that now.

-can you distribute single files this way?
I read that the only way to distribute multiple files was to use the GPO > computer settings > windows setting > files
I tried it with a single file and it works

-did you try ...\templates\* as well?
yes same result
0
 

Author Comment

by:pllr
ID: 39678574
I know I could use a login script to do this but I rather keep everything in GPO so it's centralized.
0
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
ID: 39679969
So... what were the results of gpresult?
And just to make sure: "YES it has domain user access" - does that mean the group "authenticated users" has access? Because domain user access is not sufficient as the processing account is no domain user but the computer account.
0
 

Author Comment

by:pllr
ID: 39691249
Results of gpresult /h

Security Group Membership when Group Policy was applied
BUILTIN\Administrators
Everyone
BUILTIN\Users
NT AUTHORITY\NETWORK
NT AUTHORITY\Authenticated Users
NT AUTHORITY\This Organization
PRYKELAMBERT\WORLDOXINDEXER1$
PRYKELAMBERT\Domain Computers
Mandatory Label\System Mandatory Level


I ended up using a bat script to copy the files...
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

920 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

16 Experts available now in Live!

Get 1:1 Help Now