Summary: Learn how to disconnect sessions to a specified ISCSI target with Windows PowerShell.
How can I use Windows PowerShell to disconnect sessions to a ISCSI target object?
Use the Get-ISCSITarget cmdlet to retrieve the target, and then supply it as a node address for Disconnect-ISCSITarget, for example:
Get-IscsiTarget $Tar = Get-IscsiTarget Disconnect-IscsiTarget -NodeAddress $Tar.NodeAddress
0 comments