3/19/2024 0 Comments Internet uptime monitor 2016We are using a Windows Server 2016 machine to build this script. ps1 script, we can create ourselves a nice little tool that will output the last time that a server booted. Way too complicated! Thankfully, we can make calls into WMI objects with PowerShell, and there is an object in there that will tell us the last time the server started. Then I’d pull out the calculator and do the math for how many days/hours that really was. For years, I had launched Event Viewer, waited for the System logs to open, hoped that they weren’t corrupted in some way, and then headed over to noon on the previous day to find the number of seconds that the system had been online. Usually, this is part of troubleshooting something in order to figure out whether the server rebooted as a planned action or if something went wrong and it restarted on its own during a non-standard time. ![]() ![]() I find myself constantly checking servers to figure out what time they last restarted. How to create virtual machines with VirtualBox
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |