Win32_DFS WMI classes return "No instance(s) Available" on cluster share

Applies to: Windows Server 2008 R2 DatacenterWindows Server 2008 R2 EnterpriseWindows Server 2008 R2 Standard


Consider the following scenario:
  • You have a Windows Server 2008 R2 configured with failover clustering feature
  • You have configured Distributed File System (DFS) on failover cluster to maintain a single namespace for file shares
  • You query the DFS cluster resource using Win32_DFS* WMI-class objects
  • WMI results bring NULL instances when connected to DFS resources in the cluster as seen in the examples below:
For example:
C:\>WMIC /NODE:<nodename> /NameSpace:\\root\cimv2 path Win32_DFSTarget
"No instance(s) Available"

C:\>WMIC /NODE:<nodename> /NameSpace:\\root\cimv2 path Win32_DFSNode
"No instance(s) Available"

C:\>WMIC /NODE:<nodename> /NameSpace:\\root\cimv2 path Win32_DFSNodeTarget
"No instance(s) Available"


The behavior is by design. The Win32_DFS classes are not designed to work for clustered DFS resources.


To work around this problem, you may try one of the methods mentioned below:

  1. Use Win32_Share or Win32_ClusterShare WMI classes, if applicable. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
    971403 The "Win32_share" WMI class cannot enumerate file shares or create file shares on a node in a Windows Server 2008 failover cluster
  2. Use DFS Management Command Line Tool - Dfsutil.exe, to show the instance(s) successfully.