Script to Re-Apply Settings Modified by Windows Updates?


  1. Posts : 3
    Windows 10
       #1

    Script to Re-Apply Settings Modified by Windows Updates?


    With time as I have heard mentioned online as well as noticed myself some system settings that I change and some modifications that I make to Windows registry return to their original state after Windows updates. Example are Cortana and some privacy settings that become enabled. It gets tedious to re-apply changes that have been done previously before Windows updates.

    Is there some kind of script that could automate or ease this task?

    Thanks
      My Computer


  2. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #2

    Hello @TheOneGuy,

    TheOneGuy said:
    ... some system settings that I change and some modifications that I make to Windows registry return to their original state after Windows updates. Example are Cortana and some privacy settings that become enabled. It gets tedious to re-apply changes that have been done previously before Windows updates.

    Is there some kind of script that could automate or ease this task?
    As a start . . .

    - What format are the files for the changes [ .bat, .cmd, .exe, .ps1, .reg ] ?
    - How many files are you talking about ?
    - What level of Batch Scripting do you have ?

    For ease and maintenance [ amending / updating ], it is best to keep them ALL in a SINGLE folder [ That is what I have on the %SystemDrive% ]. That way, you can just run them as and when needed. You may also need to Restart Explorer or Reboot depending on what the actual changes are for them to take affect !

    I hope this helps.



    EDIT:

    dalchina said:
    You haven't said how you apply these - 3rd party utility, manually via Settings, the registry, possibly Group Policy...
    As mentioned, if you use a 3rd-Party Utility, Settings, or Group-Policy, then it becomes a LOT more complicated to automate the process WITHOUT the use of user intervention, if at all.

    We really need more information in order to be able to help you better !
    Last edited by Paul Black; 19 Mar 2023 at 07:26.
      My Computer


  3. Posts : 42,964
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #3

    You could accumulate the various settings into a reg file... if tutorials don't give all the registry settings then you can determine them using e.g. Regshot (free) yourself.

    You haven't said how you apply these- 3rd party utility, manually via Settings, the registry, possibly Group Policy...

    I'm surprised you mention Cortana though- she's gone into hiding. No need to disturb her- retired.
      My Computers


  4. Posts : 3
    Windows 10
    Thread Starter
       #4

    Paul Black said:
    As a start . . .

    - What format are the files for the changes [ .bat, .cmd, .exe, .ps1, .reg ] ?
    - How many files are you talking about ?
    - What level of Batch Scripting do you have ?
    I meant changes made through Windows registry, through Group Policy and Windows Settings accessible through Start menu.
      My Computer


  5. Posts : 42
    Win 11 22H2 (22631.3155)
       #5

    When I do a clean install, I have several tweaks that I like to use on my system. Most of them I've found an easy solution to apply - Chris Titus' One Tool for Everything.

    It's a Powershell script with a GUI that can install a bunch of apps, perform system tweaks, and change Window Update settings.
      My Computer


  6. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #6

    Hello @TheOneGuy,

    TheOneGuy said:
    I meant changes made through Windows registry, through Group Policy and Windows Settings accessible through Start menu.
    That obviously makes it more difficult to automate.

    I suspect that MOST of the Group Policy and Windows Settings changes can be achieved with .bat, .ps1, and .reg files [ mainly .reg files ]. I have a 145+ of such files that I use, a LOT of them sourced from the Tutorials on this Forum.

    This way, with them ALL in a SINGLE folder, you could run them recursively using a Script.

    I hope this helps.
      My Computer


 

  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 01:28.
Find Us




Windows 10 Forums