Skip to content

Commit

Permalink
Add "Enable updates for Microsoft products via WU", closes Disassembl…
Browse files Browse the repository at this point in the history
  • Loading branch information
Disassembler0 committed Jun 19, 2019
1 parent e488251 commit b67cde2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Default.preset
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ SetDEPOptOut # SetDEPOptIn
### Service Tweaks ###
# DisableUpdateMSRT # EnableUpdateMSRT
# DisableUpdateDriver # EnableUpdateDriver
EnableUpdateMSProducts # DisableUpdateMSProducts
# DisableUpdateAutoDownload # EnableUpdateAutoDownload
DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
# DisableHomeGroups # EnableHomeGroups
Expand Down
12 changes: 12 additions & 0 deletions Win10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,18 @@ Function EnableUpdateDriver {
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
}

# Enable receiving updates for other Microsoft products via Windows Update
Function EnableUpdateMSProducts {
Write-Output "Enabling updates for other Microsoft products..."
(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "") | Out-Null
}

# Disable receiving updates for other Microsoft products via Windows Update
Function DisableUpdateMSProducts {
Write-Output "Disabling updates for other Microsoft products..."
(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService("7971f918-a847-4430-9279-4a52d1efe18d") | Out-Null
}

# Disable Windows Update automatic downloads
Function DisableUpdateAutoDownload {
Write-Output "Disabling Windows Update automatic downloads..."
Expand Down

0 comments on commit b67cde2

Please sign in to comment.