11/10/2023 0 Comments Powershell reboot windows![]() ![]() ![]() I can simply add them both to the -ComputerName parameter in Measure-RebootTime. So, in this example, I have two machines, Test-1 and Test-2 that I want to measure the seconds it takes to reboot them. $Time = Measure-Command -Throttle 150 | Wait-RSJob | Get-RSJob | Receive-RSJob | Select-Object * I then round the seconds to two decimals and throw it into a PSCustomObject. It used Measure-Command to measure using Restart-Computer while also waiting for PowerShell (WMI) to be available for remote connection. The Get-RebootTime function itself is very simple. That is why I created Measure-RebootTime that includes a helper function Get-RebootTime. Since these machines are not used at certain hours or days, I decided to create a PowerShell function to reboot a bunch and measure their reboot time. The issue was that certain machines were taking a long time to reboot, some even 15 minutes. Measure-RebootTime CommandĪ while back, we had a fleet of machines that users were complaining about. In this article, I will show how you can use PowerShell to measure the number of seconds a computer(s) takes to go from shutting down and starting up. Or perhaps, there is a group policy that is holding up the process of getting to the login screen. Longer boot times can mean hardware is failing, such as slow hard disks. One of the symptoms of an unhealthy Windows computer is the amount of time it takes to boot up. Typically, machines are managed and configured with group policy and SCCM, or perhaps other more modern methods like Chef or Puppet. In enterprise environments, you will usually find an array of different Windows operating systems, hardware and of course software. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |