Backup and Restore Local Group Policy Settings in Windows 10  

Page 4 of 4 FirstFirst ... 234

  1. Posts : 68,988
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #30

    pinkfloydeffect said:
    THIS WORKS FOR USER GROUPS!!!

    It works even better than Microsoft's LGPO.exe

    THANK YOU SIR!!!
    Great news. You're most welcome.
      My Computers


  2. Posts : 101
    Windows 10 Pro x64 22H2
       #31

    For the restore, I would humbly suggest not doing the "rd /s /q" straight away, but rather renaming the target directories and then copying from the backups, and then finally deleting the renamed directories only if the copy returned ErrorLevel 0.

    As an aside, I like using %random% for renames, to avoid name collisions in case the deletion doesn't work. (You can see that I trust nothing.) For example, set a variable to [OriginalName]%random%%random% and rename the object to %variable%.
      My Computer


  3. Posts : 740
    Windows 10 x64 Pro
       #32

    I'd love to be able to run this group policy backup as part of my robocopy general backup script. How would one run it from within a .bat?

    planning on trying to get it to run, then have robocopy fling it over to an external.

    is it
    wscript "path\to\script" or cscript "path\to\script" or something like that?
      My Computer


 

Tutorial Categories

Backup and Restore Local Group Policy Settings in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:25.
Find Us




Windows 10 Forums