Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Sets the power state of a server hardware resource.Syntax
Description
Set-OVServerPower sends a power control request to the specified server hardware. It supports both momentary press and press-and-hold actions, as well as cold boot and reset options.
This cmdlet is retained for backwards compatibility only. New scripts should use the dedicated Start-OVServer, Stop-OVServer, and Restart-OVServer cmdlets, which provide clearer intent and do not produce a deprecation warning.
Parameters
The server hardware object, URI, or name. Accepts pipeline input.
The desired power state. Valid values:
On, Off. Defaults to On. The PowerState alias is also accepted.The physical power control action to use. Valid values:
MomentaryPress(default) — simulates a momentary press of the power buttonPressAndHold— holds the power button to force an immediate power-offColdBoot— removes and restores power (data loss risk)Reset— performs a hardware reset
The appliance connection object or name. Defaults to the default connected session.
Examples
Power on a server
Power off a server with a press-and-hold
Power on all servers in an enclosure
Output
HPEOneView.Appliance.TaskResource
Returns an async task for the power state change operation.