# How to Find Server Uptime Using CMD

If your server hasn't been rebooted in a long time, you probably don't know how long it's been since the last reboot. Being able to **[find server uptime](https://datarecovee.com/knowledge-base/windows-uptime/)** is useful when doing maintenance or debugging. It can also help you verify that a patch or update installed correctly and that the server restarted. Luckily, you don't need any additional software to do this. The Windows Server version already has everything to figure this out, and all you need to do is open cmd to do the uptime command.
## Why Server Uptime Matters
Uptime is useful for figuring out how long a server has been running since it was last booted. If the uptime for a server suddenly drops, it means the server has been restarted, and it may be worth looking into. If a server has an extremely high uptime, it may mean that updates for the server are pending but haven't been installed yet. Since checking server uptime is a quick and easy command to run, it can be a good habit to avoid problems with a server.
## Check Server Uptime with CMD
The quickest way to **check uptime from the command line** is with the ```systeminfo``` command. Here’s how:
- Open Command Prompt on the server (or connect remotely via RDP).
- Type the following and press Enter:
```systeminfo | find "System Boot Time"```
- Windows will return the exact date and time the server last booted.
This method displays the system boot time, which will be different every time the system is booted. It requires some math to figure out the system uptime. It is useful when using the command line to determine the uptime of a system you don't have a GUI for.
## Alternative Command Line Method
You can use the command:
```net statistics workstation```
Look for the line that says "Statistics since." This will give the time that the Workstation service started, but it is better than nothing.
## Using PowerShell Instead
If you prefer PowerShell over Command Prompt, it has a more straightforward method. Type:
```Get-Uptime```
It will tell you how long the server has been up, and you won't have to do any calculations. You can get the boot timestamp itself using the command ```Get-Uptime -Since```.
You can also use the following command for detailed queries spanning multiple servers:
```(Get-CimInstance Win32_OperatingSystem).LastBootUpTime```
## A Quick Note on Accuracy
If a server has Fast Startup enabled (more common on the desktop editions of Windows, but always worth checking), **cmd uptime** will not fully reset after a normal shutdown as it would after a true restart. If you need to reset uptime for a truly fresh boot for troubleshooting, make sure a full restart was performed instead of a shutdown and power-on.
## Final Thoughts
You don’t need to rely on any third-party tools to check your server’s uptime. With just a single command in CMD or PowerShell, you’ll get your answer in no time. Tracking uptime this way helps in spotting unplanned reboots on the server, which are usually bad for server health. Visit **[Datarecovee](https://datarecovee.com/)** for more detailed information.