Set HPOVServerPower - HewlettPackard/POSH-HPEOneView GitHub Wiki

HPE OneView 4.10 Library

Set-HPOVServerPower

[DEPRECATED] Set the power state of a server.

SYNTAX

Set-HPOVServerPower [-Server] <Object> [-State] <String> [-powerControl] <String> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet is now deprecated. Please use the Start-HPOVServer, Stop-HPOVServer or Restart-HPOVServer Cmdlets.

Parameters

-ApplianceConnection <Object>

Aliases [-appliance] The name of the appliance or list of appliances to execute the command against.

Aliases Appliance
Required? true
Position? 3
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Confirm <SwitchParameter>

Aliases cf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Server <Object>

Aliases [-name, -uri, -serverUri]

The server object, URI or Name, or can be a Server Profile object.

Aliases name, uri, serverUri
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-State <String>

Optional power state. Default is On, other option is Off

Aliases PowerState
Required? true
Position? 1
Default value On
Accept pipeline input? false
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases wi
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-powerControl <String>

Optional setting to control the virtual power button.

Aliases None
Required? true
Position? 2
Default value MomentaryPress
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None

None

Return Values

None

None

Examples

Related Links


Top

HPE OneView 4.00 Library

Set-HPOVServerPower

[DEPRECATED] Set the power state of a server.

SYNTAX

Set-HPOVServerPower [-Server] <Object> [-State] <String> [-powerControl] <String> [-ApplianceConnection] <Object>[ [-WhatIf] <SwitchParameter>][ [-Confirm] <SwitchParameter>] [<CommonParameters>]

Detailed Description

This Cmdlet is now deprecated. Please use the Start-HPOVServer, Stop-HPOVServer or Restart-HPOVServer Cmdlets.

Parameters

-ApplianceConnection <Object>

Aliases [-appliance] The name of the appliance or list of appliances to execute the command against.

Aliases Appliance
Required? true
Position? 3
Default value (${Global:ConnectedSessions} | ? Default)
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?    False

-Confirm <SwitchParameter>

Aliases cf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-Server <Object>

Aliases [-name, -uri, -serverUri]

The server object, URI or Name, or can be a Server Profile object.

Aliases name, uri, serverUri
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters?    False

-State <String>

Optional power state. Default is On, other option is Off

Aliases PowerState
Required? true
Position? 1
Default value On
Accept pipeline input? false
Accept wildcard characters?    False

-WhatIf <SwitchParameter>

Aliases wi
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?    False

-powerControl <String>

Optional setting to control the virtual power button.

Aliases None
Required? true
Position? 2
Default value MomentaryPress
Accept pipeline input? false
Accept wildcard characters?    False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)

Input Types

None

None

Return Values

None

None

Examples

Related Links


Top
⚠️ **GitHub.com Fallback** ⚠️