Solved

Copy files through group policy

Posted on 2009-03-31
5
1,106 Views
Last Modified: 2012-08-14
Dear All,
I am trying to copy 5 small files from the domain controller to 200 windows xp users through a group policy, I did the following:
Write a batch file as follows:
copy \\DC(IP)\netlogon\Filename1   c:\windows\system32
copy \\DC(IP)\netlogon\Filename2   c:\windows\system32
copy \\DC(IP)\netlogon\Filename3   c:\windows\system32
Apply a group policy when the user logon to his machine. Unfortuately it didn't apply.
But I I change the folder from c:\windows\system32  to  c:\folder1  the files are copied successfully, please advice.
0
Comment
Question by:mahmoud_2008
5 Comments
 
LVL 21

Expert Comment

by:JBlond
ID: 24036965
Do you used a computer start script or a user logon script?
Do you want to overwrite files in the system32 folder?
0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 24036970
If you add a pause to the end of the script, and just run it manually on your laptop, what does it say when it tries to copy the files to the C:\windows\system32 folder? I imagine it's erroring? What is the error?
0
 
LVL 8

Assisted Solution

by:halejr1
halejr1 earned 150 total points
ID: 24036981
I think you are experiencing windows file protection for the system32 folder.  have you checked your event viewer on any of the machines being copied to?

There is a way to disable file protection, however it may be more complicated than it's worth.  Why and what types of files are you copying to system32?
0
 
LVL 14

Accepted Solution

by:
igor-1965 earned 350 total points
ID: 24036992
Your script runs upon the user login and the copy process runs under their accounts. Apparently they are Users and have no access rights to the system folders. Either have them to be Power Users or arrange copy by other means (Window startup scheduled task for example).
Hope it helps.
0
 
LVL 1

Author Closing Comment

by:mahmoud_2008
ID: 31565199
Thanks for all you experts
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

943 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

6 Experts available now in Live!

Get 1:1 Help Now