Copy file to C drive and shortcut on desktop but only on restart

Christopher Spets 21 Reputation points
2021-03-10T10:23:43.377+00:00

Hi!

We have a internal program done in Microsoft access that we have on out server that the users used to have to copy to their C drive and then make shortcut on desktop. We have now set a GPO to do this for them and that also means if we make improvements the updated file will be replaced automaticly. Sound good right? But here is a problem that have come up, since GPO reapply about every 90min. People seem to be getting all kinds of crazy errors and my guess is that the GPO tries to replace the file as instructed. This leeds to the program not working correctly or just different errors coming up and from what I have found it has to be related to this since it has come up after it was implemented.

To avoid my thought was that it should only happen on PC restart. That way we can be sure that the user is not having it open / working with the file. I found GP refresh setting but im question is wont this setting effekt all other GPO's?

Or does it mean that if we want to have it like this all GPO changes has to be on restart? Any ideas on how to make this work better?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

2 answers

Sort by: Most helpful
  1. DonPick 1,266 Reputation points
    2021-03-10T11:39:24.053+00:00

    an alternative approach:

    use GPO to deliver a shortcut which has a target which is a script.
    the script resides on your server alongside the Access file.
    the script will copy the Access file to c:
    the script will then launch the Access file.


  2. Anonymous
    2021-03-11T01:52:11.65+00:00

    Hi,
    As DonPickard said ,for your situation, a stat script will be suitable .
    Sorry for the scripts now are not supported on the Q&A
    Following link just for your reference:
    https://www.minitool.com/news/copy-files-one-folder-another-script-001.html
    https://superuser.com/questions/455364/how-to-create-a-shortcut-using-a-batch-script
    This response contains a third-party link. We provide this link for easy reference. Microsoft cannot guarantee the validity of any information and content in this link.

    Best Regards,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.