Skip to content

Commit b67cde2

Browse files
committed
Add "Enable updates for Microsoft products via WU", closes Disassembler0#250 (thx @farag2)
1 parent e488251 commit b67cde2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ SetDEPOptOut # SetDEPOptIn
6666
### Service Tweaks ###
6767
# DisableUpdateMSRT # EnableUpdateMSRT
6868
# DisableUpdateDriver # EnableUpdateDriver
69+
EnableUpdateMSProducts # DisableUpdateMSProducts
6970
# DisableUpdateAutoDownload # EnableUpdateAutoDownload
7071
DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
7172
# DisableHomeGroups # EnableHomeGroups

Win10.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,18 @@ Function EnableUpdateDriver {
10201020
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
10211021
}
10221022

1023+
# Enable receiving updates for other Microsoft products via Windows Update
1024+
Function EnableUpdateMSProducts {
1025+
Write-Output "Enabling updates for other Microsoft products..."
1026+
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "") | Out-Null
1027+
}
1028+
1029+
# Disable receiving updates for other Microsoft products via Windows Update
1030+
Function DisableUpdateMSProducts {
1031+
Write-Output "Disabling updates for other Microsoft products..."
1032+
(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService("7971f918-a847-4430-9279-4a52d1efe18d") | Out-Null
1033+
}
1034+
10231035
# Disable Windows Update automatic downloads
10241036
Function DisableUpdateAutoDownload {
10251037
Write-Output "Disabling Windows Update automatic downloads..."

0 commit comments

Comments
 (0)