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 58ba339 commit 0ea5cd2Copy full SHA for 0ea5cd2
1k/1kiss.ps1
@@ -340,7 +340,7 @@ $osVerString = if ($IsWin) { "Microsoft Windows $($NtOSVersion.ToString())" } el
340
if ($IsWin) {
341
# refer: https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-processor
342
$__1k_archs = @{9="x64"; 12="arm64"}
343
- $__1k_arch_code = [int](Get-CimInstance Win32_Processor).Architecture
+ $__1k_arch_code = [int](Get-CimInstance Win32_Processor)[0].Architecture
344
$1k.println("Host architecture code: $__1k_arch_code")
345
$HOST_CPU = $__1k_archs[$__1k_arch_code]
346
} else {
0 commit comments