Disconnect-Excel Cmdlet
Closes a connection to Microsoft Excel.
Syntax
Disconnect-Excel [parameters]
Remarks
The Disconnect-Excel cmdlet is used to close a connection that was opened by the Connect-Excel cmdlet.
Disconnect-Excel -Connection $connection