I want a client to see the DFS Referral folder list.
The WMI object seems to require Admin Rights when binding to
Root\CIMV2. (as shown below)
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
Set colDfsTargets = objWMIService.ExecQuery _
("Select * from Win32_DFSTarget")
For each objDfsTarget in colDfsTargets
Wscript.Echo "Caption: " & vbTab & objDfsTarget.Caption
Wscript.Echo "Description: " & vbTab & objDfsTarget.Description
Wscript.Echo "Install Date: " & vbTab & objDfsTarget.InstallDate
Wscript.Echo "Link Name: " & vbTab & objDfsTarget.LinkName
Wscript.Echo "Name: " & vbTab & objDfsTarget.Name
Wscript.Echo "Server Name: " & vbTab & objDfsTarget.ServerName
Wscript.Echo "Share Name: " & vbTab & objDfsTarget.ShareName
Wscript.Echo "State: " & vbTab & objDfsTarget.State
Wscript.Echo "Status: " & vbTab & objDfsTarget.Status
Next
However, the same client can run the following code below and get the
information:
dfsutil /root:[dfsroot] /view
Any thoughts or suggestions?