I was in need of getting iscsi configuration data off of Windows Server 2008 r2 hosts to upload into a database, *cough* WFA *cough* . The only decent information I found was using the sdcli to get the iscsi information remotely. So I wrote this powershell function to parse through the raw text that "sdcli iscsi_initiator list -m $server -s" gives you back, and return a custom powershell object.
I'm doing this so that I can compare the target IP addresses with what the array currently has to make sure the iscsi session is configured with all the paths.
Use at your own risk. I have tested it on a couple machines. It is quite possible that I didn't code for every scenari