Solved

Copy files through group policy

Posted on 2009-03-31
5
1,105 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for all you experts
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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