How to find VMware ESXi servers that need a reboot using PowerCLI
search cancel

How to find VMware ESXi servers that need a reboot using PowerCLI

book

Article ID: 374317

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 7.0 VMware vCenter Server 8.0

Issue/Introduction

This procedure describes a way to automate the task to retrieve the list of the all the hosts on “Reboot Required” state using a Power CLI command.

Environment

vCenter Server 7.x
vCenter Server 8.x

 

Resolution

To obtain the list of the hosts needing reboot connect to the vCenter on Power CLI and execute the following command:

Get-View -ViewType HostSystem -Property Name,Summary.Rebootrequired -Filter @{"Summary.RebootRequired"="True"} | Select-Object -Property Name

Additional Information