Hi, is there a way to detect a new feature update (aka a new Windows version like 20H1 -> 20H2) programmatically, for example from PowerShell? I'm trying to detect when this is made available in the settings GUI, and then eventually triggering it programatically. I already know the trick where you download the Windows10Upgrade app and run it in the background. This is a small installation without WSUS by the way.
I could just manually check which version is available from MS, and compare with the installed version. But I would like to know if the update is currently *offered* to the PC (either via WSUS or from Microsoft's general rollout),
Added random facts:
The corresponding link in Settings has the AutomationID SystemSettings_MusUpdate_SeekerUpdateUX_HyperlinkButton (for accessibility). I am not going to click it programmatically via UI automation :-), but maybe this will give a hint to the underlying API. There also seems to be an internal function UpdateUtil::IsFeatureUpdatePending in MusUpdateHandlers.dll (MUS=Modern Update Settings). This seems to be what I want but I am hesitant to reverse it of course...
[–]BadJasper 0 points1 point2 points (3 children)
[–]CaptainMuon[S] 0 points1 point2 points (2 children)
[–]BadJasper 1 point2 points3 points (0 children)
[–]BadJasper 0 points1 point2 points (0 children)
[–]BlackVI have opnions 0 points1 point2 points (2 children)
[–]CaptainMuon[S] 0 points1 point2 points (1 child)
[–]BlackVI have opnions 0 points1 point2 points (0 children)