Disconnect-Unity

SYNOPSIS

Disconnects from an EMC Unity Array

SYNTAX

Disconnect-Unity [[-session] <Object>] [-WhatIf] [-Confirm]

DESCRIPTION

Disconnects from an EMC Unity Array. By default, Disconnect-Unity closes all sessions. To close a specific session, use the -Session parameter. When a session is disconnected, it is removed form the default array list.

EXAMPLES

-------------------------- EXEMPLE 1 --------------------------

Disconnect-Unity

Disconnects all the sessions

-------------------------- EXEMPLE 2 --------------------------

$Session = Get-UnitySession -Server 192.168.0.1

Disconnect-Unity -Session $Session

Disconnects all the sessions matching the IP of the array 192.168.0.1

PARAMETERS

-session

Specifies an UnitySession Object.

Type: Object
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: $global:DefaultUnitySession
Accept pipeline input: True (ByPropertyName, ByValue)
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

-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

INPUTS

OUTPUTS

NOTES

Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE

https://github.com/equelin/Unity-Powershell