I wanted to prevent Windows Update from automatically restarting my PC while I was signed in. On this Windows 11 Pro machine, I used PowerShell to check and configure two Windows Update policy values.
This records the configuration we applied and verified in the registry. We have not yet tested it against an actual update-triggered restart.

