We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7787635 commit 490723bCopy full SHA for 490723b
1k/1kiss.ps1
@@ -340,8 +340,8 @@ $osVerString = if ($IsWin) { "Microsoft Windows $($NtOSVersion.ToString())" } el
340
# arm64,x64
341
# uname -m: arm64/aarch64,x86_64
342
if ($IsWin) {
343
- $__1k_archs = @{9="x64"; 10="arm64"}
344
- $__1k_arch_code = [int](Get-CimInstance Win32_Processor).Architecture[0]
+ $__1k_archs = @{9="x64"; 12="arm64"}
+ $__1k_arch_code = [int](Get-CimInstance -ClassName Win32_Processor -ErrorAction Stop | Select-Object -First 1).Architecture
345
$HOST_CPU = $__1k_archs[$__1k_arch_code]
346
} else {
347
$HOST_CPU = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLower()
0 commit comments