The Get-ComputerInfo cmdlet gets a consolidated object of system and operating system properties. This cmdlet was introduced in Windows PowerShell 5.1
# Get serial number of laptop
Get-ComputerInfo | Select-Object BiosSerialNumber
# Get OS installed date
Get-ComputerInfo | Select-Object OsInstallDate
# Get OS booting time
Get-ComputerInfo | Select-Object OsLastBootUpTime, OsUptime | fl
0 Comments