Summary: Use Windows PowerShell 3.0 on Windows 8 or Windows Server 2012 to get ISCSI connections from a remote server.
How can I get ISCSI connection information from a remote server?
First, create a new CIM session by using the New-CimSession cmdlet and specify the target server and credentials appropriate for that machine. Next, use the Get-ISCSIConnection cmdlet / function to retrieve the information, as shown here.
$hyperv2 = New-CimSession -ComputerName hyperv2 -Credential nwtraders\administrator
Get-IscsiConnection -CimSession $hyperv2
0 comments