File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ SetDEPOptOut # SetDEPOptIn
6666### Service Tweaks ###
6767# DisableUpdateMSRT # EnableUpdateMSRT
6868# DisableUpdateDriver # EnableUpdateDriver
69+ EnableUpdateMSProducts # DisableUpdateMSProducts
6970# DisableUpdateAutoDownload # EnableUpdateAutoDownload
7071DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
7172# DisableHomeGroups # EnableHomeGroups
Original file line number Diff line number Diff 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
10241036Function DisableUpdateAutoDownload {
10251037 Write-Output " Disabling Windows Update automatic downloads..."
You can’t perform that action at this time.
0 commit comments