Skip the test on x86 as InstallDate is not visible on Wow64 (#20165)

This commit is contained in:
Aditya Patwardhan 2023-08-29 12:46:53 -07:00 committed by GitHub
parent a469783e76
commit ddb3b5ff4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
{