Hello again!
I am working on a Powershell script to configure some Windows 10 settings for some machines that belong to me and some friends. The changes that I want to make are under Settings > Update & Security > Windows Update > Advanced Options. I can change the "Show a notification when your PC requires a restart to finish updating" and "Download updates over metered connections (extra charges may apply)" options with the below commands in my script.
The problem is with how to turn on "Receive updates for other Microsoft products when you update Windows" and "Restart this device as soon as possible when a restart is required is required to install an update. Windows will display a notice before the restart, and the device must be on and plugged in." I looked into changing it with Group Policy via Powershell but could not find a way to change these two settings.
This thread is the only info I could find in regard to this topic. Any ideas?
I am working on a Powershell script to configure some Windows 10 settings for some machines that belong to me and some friends. The changes that I want to make are under Settings > Update & Security > Windows Update > Advanced Options. I can change the "Show a notification when your PC requires a restart to finish updating" and "Download updates over metered connections (extra charges may apply)" options with the below commands in my script.
Code:
# Configure Windows Updates
# 0 - Disabled, 1 - Enabled
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v AllowAutoWindowsUpdateDownloadOverMeteredNetwork /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v RestartNotificationsAllowed2 /t REG_DWORD /d 1 /f
The problem is with how to turn on "Receive updates for other Microsoft products when you update Windows" and "Restart this device as soon as possible when a restart is required is required to install an update. Windows will display a notice before the restart, and the device must be on and plugged in." I looked into changing it with Group Policy via Powershell but could not find a way to change these two settings.
This thread is the only info I could find in regard to this topic. Any ideas?