Comment get the system uptime dans Windows?

How to get the system uptime in Windows?


Source : Stack Overflow [windows]

Following are eight ways to find the Uptime in Windows OS.

#1: By using the Task Manager
The Task Manager has been beefed up to show additional information about the system. One of these pieces of info is the server’s running time.

  • Right-click on the Taskbar, and click Task Manager. You can also click CTRL+SHIFT+ESC to get to the Task Manager.

  • In Task Manager, select the Performance tab.

  • Select CPU tile.

The current system uptime is shown in the additional infos under the utilization graph for Win 8/10/11.

#2: By using the System Information Utility
The systeminfo command line utility checks and displays various system statistics such as installation date, installed hotfixes and more.
Open a Command Prompt and type the following command:

systeminfo

You can also narrow down the results to just the line you need:

systeminfo | find "System Boot Time:"

#3: By using the Uptime Utility
Microsoft have published a tool called Uptime.exe. It is a simple command line tool that analyses the computer’s reliability and availability information. It can work locally or remotely. In its simple form, the tool will display the current system uptime. An advanced option allows you to access more detailed information such as shutdown, reboots, operating system crashes, and Service Pack installation.

Read the following KB for more info and for the download links:

To use it, follow these steps:

  • Download uptime.exe from the above link, and save it to a folder,
    preferably in one that’s in the system’s path (such as SYSTEM32).

  • Open an elevated Command Prompt window. To open an elevated Command
    Prompt, click Start, click All Programs, click Accessories,
    right-click Command Prompt, and then click Run as administrator. You
    can also type CMD in the search box o

(Réponse tronquée)