Get-Uptime Get-Uptime -ComputerName localhost It will display Computer uptime for local or remote host. It is a simple not fancy script.