mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 13:04:59 +02:00
Update check-os.ps1
This commit is contained in:
@ -16,7 +16,7 @@ try {
|
|||||||
"✅ $(uname -sr)"
|
"✅ $(uname -sr)"
|
||||||
} else {
|
} else {
|
||||||
$OS = Get-WmiObject -class Win32_OperatingSystem
|
$OS = Get-WmiObject -class Win32_OperatingSystem
|
||||||
$Name = $OS.Caption
|
$Name = $OS.Caption -Replace "Microsoft Windows","Windows"
|
||||||
$Arch = $OS.OSArchitecture
|
$Arch = $OS.OSArchitecture
|
||||||
$Version = $OS.Version
|
$Version = $OS.Version
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user