HPE iLO Cmdlets provide server administrators to script some common server maintenance tasks to ease the job as well as provides the capability to automate it at some point.
This article demonstrates how to leverage the Windows PowerShell of the HP iLO Cmdlets package to power on/off your HPE server.
PREREQUISITE
You may need to download the HP iLO Cmdlets for Windows PowerShell (x64) from HPE support portal and install it on the server/machine you wish you execute the PowerShell command.
COMMAND
Below are the PowerShell commands to power on/off the server.
# Power-on the HP iLO server
Set-HPiLOHostPower -Server $srvILO -Username $username -Password $password -HostPower "Yes"
# Power-off the HP iLO server
Set-HPiLOHostPower -Server $srvILO -Username $username -Password $password -HostPower "No"
Leave a comment