mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Skip the test on x86 as InstallDate is not visible on Wow64 (#20165)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user