Compared with update(feature) list from OptionalFeatures.exe, our result have some extra ones. The arguments of EnumerateUpdates method are still not clarified completly.
How to get features' install state? The method GetInstallState always outputs Staged for all updates, and the requested state is mysterious.
/Get-FeatureInfo command of DISM provides Restart Required field and extra Custom Properties. For example, the Microsoft-Windows-Subsystem-Linux have these custom properties:
ServerComponent\Description : Provides services and environments for running native user-mode Linux shells and tools on Windows.
ServerComponent\DisplayName : Windows Subsystem for Linux
ServerComponent\Id : 1033
ServerComponent\Type : Feature
ServerComponent\UniqueName : Microsoft-Windows-Subsystem-Linux
ServerComponent\Deploys\Update\Name : Microsoft-Windows-Subsystem-Linux
OptionalFeatures.exe
, our result have some extra ones. The arguments ofEnumerateUpdates
method are still not clarified completly.GetInstallState
always outputsStaged
for all updates, and the requested state is mysterious./Get-FeatureInfo
command of DISM providesRestart Required
field and extraCustom Properties
. For example, theMicrosoft-Windows-Subsystem-Linux
have these custom properties: