AdamGrossTX/Windows10FeatureUpdates

Type mismatch for property "InstallAttempts" in New-WMIRegistryClass-SetupDiag.ps1

Closed this issue · 0 comments

The registry value InstallAttempts in HKLM:\System\Setup\MoSetup\Tracking is type REG_DWORD, and if present, New-WMIRegistryClass-SetupDiag.ps1 gives this error for line 279:

New-CimInstance : Type mismatch for property "InstallAttempts"

Either need to check Value type and convert to string before adding to $PropertyList or change the type in ClassPropertyList.