Disconnecting from SRM servers
To disconnect your PowerCLI session from one or more SRM servers, you can use the Disconnect-SrmServer
cmdlet. The syntax of the Disconnect-SrmServer
cmdlet is as follows:
Disconnect-SrmServer [[-Server] <SrmServer[]>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
The Disconnect-SrmServer
cmdlet has no required parameters.
In the following example, we will disconnect from all of the connected SRM servers:
PowerCLI C:\> Disconnect-SrmServer * -Confirm:$False
The preceding command does not return any output.
Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.