In PowerShell
I'm trying to get the drive letter that an ISCSI target is mapped to. I'm using the following to get the ISCSI initiator name.
Get-IscsiTarget | ? {$_.IsConnected -eq $True} | Select -ExpandProperty NodeAddress
I have tried using Get-Disk | Select *
and Get-PSDrive | Select *
but these cmdlets
do not seem to have any fields that I can link a target to, to obtain its drive letter.