How to Get Uptime of Remote Computer Using PowerShell

This post introduces how to get uptime on remote computer using PowerShell. Besides, other three options to get the remote computer uptime are also given. Please check them out.

Ellie

By Ellie / Updated on December 13, 2024

Share this: instagram reddit

Content 

✔ How do I find the uptime on my remote computer using PowerShell?
✔ Get uptime of remote computer using PowerShell
✔ Other three options to get the remote computer uptime
✓ Option 1. Use SystemInfo command line
✓ Option 2. Use Sysinternals command line
✓ Option 3. Use the remote desktop software
✔ Conclusion

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?”

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 you can check its uptime on it or take other operations on it. Now, download it and see how it works. To control PCs from mobile phones or tablets, you need to download AnyViewer mobile app.

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

Step 1. Install, and launch AnyViewer on both devices.  Go to Log in, and then click Sign up to create an AnyViewer account. 

Log in AnyViewer

Step 2. Log in to the same AnyViewer account on the two devices; your device will automatically be assigned to the account you've logged in to and listed on My devices list.

Free Editions

Step 3. On your local device, go to Device, locate the remote PC on My devices list, click it, and click One-click control to achieve unattended remote access.

Connect to My Devices

✍ Note: If you want to assign more devices to achieve one-click 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.