Get Windows Server Uptime (also Windows 10)

I have needed to retrieve the uptime from several Windows servers in the last few months. There is a number of ways to do this but I can’t seem to remember how to do this when I need to. Obviously a native “uptime” command would be too easy. So here is one way (use these commands in the cmd.exe terminal):

net statistics server

Look for the “Statistics since” line.

Or use this command:

systeminfo | find "Time"

On windows 10:

net statistics workstation

Note that these commands don’t return the actual uptime, but rather the last boot time. If you really want the math done for you so that you get the actual uptime in a human format, and you have a GUI front end, then do the following:

Start the Task manager.
Click the "Performance" tab.