Skip to content

Get-MaintenanceMode

Synopsis

Returns the maintenance mode status of a specified ESX host.

Syntax

Get-MaintenanceMode [-server] <String> [-user] <String> [-pass] <String> [<CommonParameters>]

Description

The Get-MaintenanceMode cmdlet returns the maintenance mode status of a specified ESX host.

Examples

Example 1

Get-MaintenanceMode -server [esx_fqdn] -user [admin_username] -pass [admin_password]

This example returns the ESX host maintenance mode status.

Parameters

-server

The FQDN of the ESX host.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-user

The username to authenticate to the ESX host.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-pass

The password to authenticate to the ESX host.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.