mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-30 13:25:29 +08:00
Skip the test on x86 as InstallDate
is not visible on Wow64
(#20165)
This commit is contained in:
parent
a469783e76
commit
ddb3b5ff4c
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user