mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Update check-cpu.ps1
This commit is contained in:
parent
1e3265b02b
commit
a56e58c1cf
@ -48,14 +48,21 @@ try {
|
||||
if ($IsLinux) {
|
||||
$Name = $PSVersionTable.OS
|
||||
if ($Name -like "*-generic *") {
|
||||
$Arch = "x86"
|
||||
if ([System.Environment]::Is64BitOperatingSystem) {
|
||||
$Arch = "x86-64"
|
||||
} else {
|
||||
$Arch = "x86-32"
|
||||
}
|
||||
} elseif ($Name -like "*-raspi *") {
|
||||
$Arch = "ARM"
|
||||
if ([System.Environment]::Is64BitOperatingSystem) {
|
||||
$Arch = "ARM64"
|
||||
} else {
|
||||
$Arch = "ARM32"
|
||||
}
|
||||
} else {
|
||||
$Arch = ""
|
||||
}
|
||||
if ([System.Environment]::Is64BitOperatingSystem) { $Bits = "64-bit" } else { $Bits = "32-bit" }
|
||||
$CPUName = "$Arch $Bits CPU"
|
||||
$CPUName = "$Arch CPU"
|
||||
$DeviceID = ""
|
||||
$Speed = ""
|
||||
$Socket = ""
|
||||
|
Loading…
Reference in New Issue
Block a user