Windows uptime batch
We can use the output redirection and the command find , if we type this command:. The WMI subsystem contains all the information about the local Windows machine. You can get information like Windows version, memory, computer serial number, etc. Furthermore, it can access remote Windows machines and read their information too. This is very useful trick if you need to check multiple machines from your computer.
Our command for the local machine will be:. You can type everything in lower case my example below differs simply to highlighted the parameter name. The request will be processed and you should see response like. The output of the WMIC command will always be the same, regardless of your local date and time format. The milliseconds are displayed after the dot. In our example, we have the value This means that the last system boot was on June 16 th 06 16 at Use the version that suits your needs.
I encourage you to investigate other parameters of the WMIC command — it may well save your day. Like Like. Yes, you will see the last boot up start time. Many application problems have roots in the too long continuous work. Thanks for the check! Add a comment. EDIT: I don't see a clear way around this with batch unless you are willing to download a third party Uptime utility.
Larryc Larryc 4 4 silver badges 11 11 bronze badges. This doesn't seem to work. My laptop has been on for 10 minutes and it's reporting the uptime as always 48 seconds. I suspect you're just displaying the number of seconds past the minute when the laptop was turned on? I misunderstood your request. That, in turn, lead me down the wrong path in understanding what you were asking for.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related 2. Apple also adds this feature to its iOS system a few years ago to partially test the system performance.
As you can guess from the name, uptime means the time your machine has been running till now. It is actually a measure of system reliability to show you exactly how long your computer has been working and available since last startup. You should get help from MiniTool Software when running into computer problems.
0コメント