Skip to content

Instantly share code, notes, and snippets.

@bernhardkaindl
Last active August 22, 2025 13:39
Show Gist options
  • Select an option

  • Save bernhardkaindl/dba49495fda27d3de134da652b236dc8 to your computer and use it in GitHub Desktop.

Select an option

Save bernhardkaindl/dba49495fda27d3de134da652b236dc8 to your computer and use it in GitHub Desktop.
Install the gpedit.msc in Win11 Home:
# 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