Last active
August 22, 2025 13:39
-
-
Save bernhardkaindl/dba49495fda27d3de134da652b236dc8 to your computer and use it in GitHub Desktop.
Install the gpedit.msc in Win11 Home:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Elevated Windows Powershell commands to install the gpedit.msc in Win11 Home. | |
| # Update active hours automatically each hour to prevent automatic reboot: | |
| # - https://udse.de/reboot-blocker/ | |
| # Other options: | |
| # https://www.sordum.org/9470/windows-update-blocker-v1-8/ | |
| # https://www.thewindowsclub.com/block-updates-windows-10-stopupdates10 | |
| # https://superuser.com/questions/957267/how-to-disable-automatic-reboots-in-windows-10/1529456#1529456 | |
| # - Run a program that blocks reboot/shutdown entirely: | |
| # https://www.udse.de/en/windows-10-reboot-blocker | |
| # Settings -> Windows Update -> Advanced Options -> Notify me when a restart is required to finish updating | |
| # Settings -> Windows Update -> Advanced Options -> Configured updated policies | |
| foreach ($F in Get-ChildItem -Path "$env:SystemRoot\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") {DISM /Online /NoRestart /Add-Package:"$F"} | |
| foreach ($_ in (Get-ChildItem -Path "$env:SystemRoot\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum")) {DISM /Online /NoRestart /Add-Package:"$_"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment