I can't find any doumentation for setting up iSNS registration for a iSCSI target in Windows 2012 R2.
I did find some documentation that is for 2012 non R2:
http://blogs.technet.com/b/filecab/archive/2012/06/08/iscsi-target-cmdlet-reference.aspx
It said to do the following in powershell:
Set-WmiInstance -Namespace root\wmi -Class WT_iSNSServer –Arguments @{ServerName="ISNSservername"}
Doing that I get the following response:
format-default : The following exception occurred while retrieving members: ""+ CategoryInfo : NotSpecified: (:) [format-default], ExtendedTypeSystemException
+ FullyQualifiedErrorId : CatchFromBaseGetMembers,Microsoft.PowerShell.Commands.FormatDefaultCommand
I have gotten all of my iSCSI initiators registering with the iSNS server, but without the target registering, there isn't really a point to it.
Thank you
Scott Hellewell