Update check-operating-system.ps1

This commit is contained in:
Markus Fleschutz 2022-11-02 21:49:17 +01:00
parent 52eb6034bc
commit 23dc4c2f82

View File

@ -25,7 +25,7 @@ try {
$BuildNo = $OSDetails.BuildNumber $BuildNo = $OSDetails.BuildNumber
$Serial = $OSDetails.SerialNumber $Serial = $OSDetails.SerialNumber
$InstallDate = $OSDetails.InstallDate $InstallDate = $OSDetails.InstallDate
"$Name ($Arch, v$Version, serial $Serial), installed $($InstallDate.ToShortDateString())." "$Name ($Arch, v$Version, S/N $Serial, installed $($InstallDate.ToShortDateString()))."
} }
exit 0 # success exit 0 # success
} catch { } catch {