< Back

Disconnect-ViSession

Sat Jan 18, 2020 8:44 pm

NAME Disconnect-ViSession



SYNOPSIS

Disconnects a connected vCenter Session.





SYNTAX

Disconnect-ViSession [[-SessionList] <Object>] [<CommonParameters>]





DESCRIPTION

Disconnects a open connected vCenter Session.





PARAMETERS

-SessionList <Object>

A session or a list of sessions to disconnect.



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue)

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-VISession | Where { $_.IdleMinutes -gt 5 } | Disconnect-ViSession













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-VISession | Where { $_.Username -eq ????????????????User19??????????????? } | Disconnect-ViSession















RELATED LINKS