Disconnect-Unisphere

SYNOPSIS

Disconnects from a Unisphere server.

SYNTAX

ByHostName (Default)

Disconnect-Unisphere [-HostName] <String> [-DeleteCredentials] [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]

ByUnisphere

Disconnect-Unisphere [-Unisphere] <UnisphereServer> [-DeleteCredentials] [-Confirm] [-Force] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Disconnects from a Unisphere server. The command will succeed in case the Unisphere server is not connected.

With the DeleteCredentials option, if there are credentials and connection information saved by the Connect-Unisphere command with the SaveCredentials option, they will be deleted.

EXAMPLES

Example 1

PS C:\> Disconnect-Unisphere -HostName host -DeleteCredentials

Disconnects from the Unisphere server with host name host, and deletes previously saved credentials.

Example 2

PS C:\> Disconnect-Unisphere -Unisphere $unisphere

Where $unisphere is a Unisphere server instance. Disconnects from the Unisphere server.

PARAMETERS

-HostName

FQDN or IP address.

Type: String
Parameter Sets: ByHostName
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Unisphere

A Unisphere server instance.

Type: UnisphereServer
Parameter Sets: ByUnisphere
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-DeleteCredentials

Deletes the file that contains credentials and connection information.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-Force

Suppress confirmation prompt before disconnecting the Unisphere server.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

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

INPUTS

System.String

OUTPUTS

System.Object

NOTES