code: def _windows_iqn():
      '''
      Return iSCSI IQN from a Windows host.
      '''
      ret = []
  
      wmic = salt.utils.path.which('wmic')
  
      if not wmic:
          return ret
  
      namespace = r'\\root\WMI'
      path = 'MSiSCSIInitiator_MethodClass'
      get = 'iSCSINodeName'
  
      cmd_ret = salt.modules.cmdmod.run_all(
          '{0} /namespace:{1} path {2} get {3} /format:table'
          ''.format(wmic, namespace, path, get))
  
      for line in cmd_ret['stdout'].splitlines():
          if line.startswith('iqn.'):
              line = line.rstrip()
              ret.append(line.rstrip())
  
      return ref _windows_iqn():
      '''
      Return iSCSI IQN from a Windows host.
      '''
      ret = []
  
      wmic = salt.utils.path.which('wmic')
  
      if not wmic:
          return ret
  
      namespace = r'\\root\WMI'
      path = 'MSiSCSIInitiator_MethodClass'
      get = 'iSCSINodeName'
  
      cmd_ret = salt.modules.cmdmod.run_all(
          '{0} /namespace:{1} path {2} get {3} /format:table'
          ''.format(wmic, namespace, path, get))
  
      for line in cmd_ret['stdout'].splitlines():
          if line.startswith('iqn.'):
              line = line.rstrip()
              ret.append(line.rstrip())
  
      return ret
docs: Return iSCSI IQN from a Windows host.