Update check-os.ps1

This commit is contained in:
Markus Fleschutz 2023-11-24 10:26:30 +01:00
parent 71eaa3e6f1
commit eca81b91d5

View File

@ -16,7 +16,7 @@ try {
if ($IsLinux) {
$Name = $PSVersionTable.OS
if ([System.Environment]::Is64BitOperatingSystem) { $Arch = "64-bit" } else { $Arch = "32-bit" }
Write-Host "$Name $Arch"
Write-Host "$Name (Linux $Arch)"
} else {
$OS = Get-WmiObject -class Win32_OperatingSystem
$Name = $OS.Caption -Replace "Microsoft Windows","Windows"