Update check-cpu.ps1, check-os.ps1, and install-powershell.ps1

This commit is contained in:
Markus Fleschutz
2022-12-28 12:21:15 +01:00
parent 141a867b06
commit 17d4839150
3 changed files with 33 additions and 5 deletions

View File

@ -13,7 +13,9 @@
try {
if ($IsLinux) {
"$(uname -sr)"
$Name = $PSVersionTable.OS
if ([System.Environment]::Is64BitOperatingSystem) { $Bits = "64-bit" } else { $Bits = "32-bit" }
"$Name ($Bits)"
} else {
$OS = Get-WmiObject -class Win32_OperatingSystem
$Name = $OS.Caption -Replace "Microsoft Windows","Windows"