[release/v7.4.0-preview.6] Skip the test on x86 as InstallDate is not visible on Wow64 (#20165) (#20255)

This commit is contained in:
Dongbo Wang
2023-09-11 16:50:09 -07:00
committed by GitHub
parent 08b6f61798
commit 67310dfc2a
@@ -232,9 +232,9 @@ function Get-PropertyNamesForComputerInfoTest
"WindowsVersion",
"WindowsUBR")
if ([System.Management.Automation.Platform]::IsIoT)
if ([System.Management.Automation.Platform]::IsIoT -or (Test-IsWinWow64))
{
Write-Verbose -Verbose -Message "WindowsInstallDateFromRegistry is not supported on IoT."
Write-Verbose -Verbose -Message "WindowsInstallDateFromRegistry is not supported on current platform."
}
else
{