By Ellie / Last Updated August 8, 2022

How do I find the uptime on my remote computer using PowerShell?

“I have a remote Windows 10 computer and I always need to remote into it. Therefore, I keep it running and I have already forgotten how long has it been on. Now I want to know how can find the uptime on it? Can I do it using PowerShell?”

The way to get uptime of remote computer using PowerShell

The answer is YES! You can get uptime of a remote computer using PowerShell. Here in this part, we’ll give you the detailed steps on how to do this.  

Step 1. On your remote computer, right-click This PC on your desktop, and then choose Properties.

Properties

Step 2. You can see your computer name here. Note it down, you’ll need it later.

Device Name

Step 3. Press Win + R to invoke the Run dialog box, then type in “powershell.exe” and press OK to open PowerShell.

Run Event Viewer as Administrator

Step 4. Type in the following command, and then press Enter:

(Get-Date) - (Get-CimInstance Win32_OperatingSystem -ComputerName Remote_Computer).LastBootupTime

Note: Replace “Remote_Computer” with the name of your own remote computer.

PowerShell Last Boot Up Time

Other three options to get the remote computer uptime

Except for using the PowerShell command to get uptime of remote computer, here we would like to introduce other three options to get the remote computer uptime.

Option 1. Use SystemInfo command line

Important: The prerequisite to using SystemInfo to display information about remote computers is that the local computer and the remote computer are on the same network.

Step 1. Press Win + R to invoke the Run dialog box, then type in “cmd” and press OK to open Command Prompt.

Run Box CMD

Step 2. Type in the following command, and then press Enter:

SystemInfo /s Remote_Computer | find "Boot Time:"

Note: Replace “Remote_Computer” with the name of your own remote computer.

Systeminfo

Option 2. Use Sysinternals command line

Important: The prerequisite to using Sysinternals is that you will need the Remote Registry service up and running on the remote computer.

Step 1. On the remote computer, press Win + R, then type in “service.msc” and press OK to open Services.

Services.msc

Step 2. Find and double-click Remote Registry.

Remote Registry

Step 3. Change the Startup type of Remote Registry to Automatic.

Remote Registry Properties

Step 5. Open Command Prompt on the local computer. Type in the following command, and then press Enter:

PSInfo Uptime \\Remote_Computer

Note: Replace “Remote_Computer” with the name of your own remote computer.

Sysinternals

Option 3. Use the remote desktop software

Another option for you is to use the free and stable remote desktop software AnyViewer to remotely access the remote computer and then check its uptime on it.

Download Freeware Win 11/10/8.1/8/7
Secure Download

Step 1. Download, install, launch AnyViewer on both computers.

Download AnyViewer

Step 2. Go to Log in, and then click Sign up. (If you already have signed up on its official website, you can log in directly.)

Log in AnyViewer

Step 3. Fill in the signup information.

Sign Up for AnyViewer

Step 4. Then you can see you successfully logged in to AnyViewer. Your device will automatically be assigned to the account you've logged in to.

Free Editions

Step 5. Log in to the same AnyViewer account on the two devices, then click Remote control to achieve unattended remote access.

Connect to My Devices

Note: If you want to assign more devices to achieve unattended remote access, then you can upgrade your account to a Professional or Enterprise plan. Also, you can connect to another computer in privacy mode, which means you can black the screen and block the mouse and keyboard of the remote computer.

Step 6. Now you have full control of the remote computer. Open Command Prompt on the remote computer.

AnyViewer System Boot Time

Conclusion

If you’re trying to get uptime of remote computer using PowerShell, then you can follow the steps listed in this post. Besides using PowerShell command to get uptime of remote computer, we also offer you other three methods. Among these, we highly recommend the last one, which is using the remote desktop software AnyViewer. Once you have remote into another computer, you can check its uptime like you’re just sitting in front of it, no more setup work to do, which is quite convenient compared to others.