The systeminfo command in Microsoft Windows PowerShell will provide you with many statistics for your Windows server. If you’re ever looking for the servers uptime then you may use the following command:

systeminfo | find “System Boot Time”