One option is the Server Information command-line utility Srvinfo. Learn what the handy Server Information tool has to offer. One way is to enter the following command at the command prompt:. Statistics Since Keep in mind that if someone has issued the Net Stop and Net Start commands, the displayed uptime will be incorrect.
Home R2 Library Forums. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Sign in to vote. 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. It will return the total uptime for all of the events the server has in the event log, including the current uptime. This script is a quick way to find the uptime of a single server across many days. But what if you need this information for lots of servers at once?
To do this, you can gather up a list of servers and then pass each computer name, one at a time, to this script. As an example, define all your servers in an array in the PowerShell console. In reality, though, you might be pulling server names from Active Directory, Hyper-V, or a text file. Add a server name to the output like below using a calculated property.
We now have an excellent little tool that can provide us a quick report on uptime for our servers over time! Choose the best one for your own context. Get this interactive comic book to learn how Veeam and AWS can help you fight ransomware, data sprawl, rising cloud costs, unforeseen data loss and make you a hero!
ATA is known for its high-quality written tutorials in the form of blog posts. Adam the Automator.
0コメント