none
GPO to back up and then replace file?

    Question

  • We would like to replace file on all domain computers, but also save a copy of the original file being replaced in the same folder on the workstation so it can be used for reference in the future. 

    For instance.  Make a copy of any existing file.txt on the workstation and rename it as file.bak, then copy a replacement file.txt into the same folder.

    Is there any way to do this via GPO and only do it once per workstation?


    • Edited by MyGposts Thursday, November 19, 2015 1:48 AM
    Thursday, November 19, 2015 1:47 AM

Answers

  • > Is there any way to do this via GPO and only do it once per workstation?
     
    Of course.
     
    Create 2 file items.
     
    The first to copy the original file to the backup file. On "common" Tab,
    enable item level targeting, target for "backup file" does NOT exist.
     
    The second to copy the new to the original file, again with ILT for
    "backup file" DOES exist. This will ensure that the original file will
    be overwritten only if the backup file was successfully created.
     
    • Marked as answer by MyGposts Friday, November 20, 2015 4:26 AM
    Thursday, November 19, 2015 11:04 AM

All replies

  • You might need a 3rd party app for this. I don't think you can do it via GPO

    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Thursday, November 19, 2015 4:51 AM
  • > Is there any way to do this via GPO and only do it once per workstation?
     
    Of course.
     
    Create 2 file items.
     
    The first to copy the original file to the backup file. On "common" Tab,
    enable item level targeting, target for "backup file" does NOT exist.
     
    The second to copy the new to the original file, again with ILT for
    "backup file" DOES exist. This will ensure that the original file will
    be overwritten only if the backup file was successfully created.
     
    • Marked as answer by MyGposts Friday, November 20, 2015 4:26 AM
    Thursday, November 19, 2015 11:04 AM