Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy file + script Startup policy

Status
Not open for further replies.

nootgevallen

Technical User
May 22, 2003
81
0
0
NL
Hi ,

I want to copy a file before the user logs in.
So i want to copy a file from the server to a destination folder on the workstation .

Filename.exe to c:\program files\Program\

made a batch file that i put in the group policy of the workstation login script -> STARTUP

copy.bat :

copy /y "\\duwo.local\sysvol\duwo.local\scripts\filename.exe" "C:\Program Files\program"

but i get access denied when it wants to copy the file from the server.

any help is welcome .

greetz noot

 
already now what the problem is .

the program.exe in the destination folder on the workstation is read only .
so i had to use xcopy /M /R /Y

now it works

grtz noot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top