Checking system uptime is a quick way to know how long the system has been running without interruptions to service.
The quickest way to check the system up time on your own machine to check the same from Task Manager. You can launch task manager and go to performance tab to find system uptime.
You can use below PowerShell script to quickly check the uptime of a remote machine. The script will use WMI call to retrieve the information.
$Computer = Read-Host "Input Computer Name " $LastBoot = (Get-WmiObject -Class Win32_OperatingSystem -ComputerName $Computer ).LastBootUpTime $uptime = (Get-Date) - [System.Management.ManagementDateTimeconverter]::ToDateTime($LastBoot) Write-Host "$Computer uptime is:" [$uptime] [dd:hh:mm:ss.ms]
- Powershell – Get System up time
- Powershell Script : List AD Organizational Unit and GPOs linked to them
- Powershell – Compare hardware and software details on two computers
- Powershell Script : Retrieve AD Computers Properties
- Powershell – Merge CSV files & Insert file name as a column
- Powershell Script: Validate if Computer account exists in Active Directory
- Powershell remote – WinRM cannot complete the operation
- Powershell script to Add bulk users / computers to AD Group
- PowerShell Script : Copy AD Group Membership
- Using PowerShell Behind a Proxy Server
Subscribe to Techuisitive Newsletter
Be the first to know about our new blog posts. Get our newsletters directly in your inbox and stay up to date about Modern Desktop Management technologies & news.