Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POA doesnt fetch updates for other Microsoft products #11

Open
raunakpandya opened this issue Apr 4, 2019 · 0 comments
Open

POA doesnt fetch updates for other Microsoft products #11

raunakpandya opened this issue Apr 4, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@raunakpandya
Copy link
Contributor

Windows update has an option to enable WU to "Give me update for other Microsoft products when I update Windows". POA doesn't enable that setting or pull those updates by default. If one enables that setting manually today, POA would start pulling updates fine hence the issue is just that if POA can enable that setting itself based on some flag in settings.xml.

Some options to enable this programmatically -

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

AllowMUUpdateService REG_DWORD 1

or

Script RegisterMicrosoftUpdateForAutoUpdates
{
GetScript = {
$isMuRegisteredForAU = $false
foreach ($updateService in (new-object -ComObject "microsoft.update.servicemanager").Services) {if ($updateService.Name -eq "Microsoft Update"){ $isMuRegisteredForAU=$updateService.IsRegisteredWithAU }}
Return @{'Result' = "Microsoft Update registration status with Auto Updates: $isMuRegisteredForAU"}
}
TestScript = {
$isMuRegisteredForAU = $false
foreach ($updateService in (new-object -ComObject "microsoft.update.servicemanager").Services) {if ($updateService.Name -eq "Microsoft Update"){ $isMuRegisteredForAU=$updateService.IsRegisteredWithAU }}
Return $isMuRegisteredForAU
}
SetScript = {(new-object -ComObject "microsoft.update.servicemanager").addservice2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")}
}

@raunakpandya raunakpandya added the enhancement New feature or request label Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant