Script to backup files to network drive
I have a script set up to run on user logoff through GP on Windows 7 to backup a file from the user area to the network drive. When the user logs off I can see the script flash up (so i take it it's running) but the file doesn't get updated on the network area. The only thing I can think is that the network share is getting disconnected before the script can copy the file.
Is there any other place I should run the script or is there any way to keep the network share linked until the file has copied?
Robocopy seemed to fixed my issue. I had been using xcopy which didn't seem to work on logoff but the robocopy did.
Community Chosen Answer
Try this test while I attempt to get you a better answer,
On one computer create a scheduled task to run your script at logoff. Make sure you check Run whether user is logged on or not. If it fails, it should write an entry in the Windows system log and (kinda) tell you why.