I'm trying to get a list of all "Volume Paths" for all shares on a remote NetApp server through PowerShell. WMI, CIM, WMIC, NET VIEW, NET SHARE, NET USE. I haven't been able to use any of those to get the path.
When looking at Computer Management > Shared Folders > Shares it lists all shared folders for that computer and their associated "Folder Path". It's almost exactly what I'm looking for. If Computer Management is able to retrieve that information then I should be able to replicate it using a coding/scripting language.
Just like "Local Users and Computers" in Comp Mgmt can be replicated using ADSI/ADSISearcher in .net framework. There has to be a way to replicate "Shares" in Comp Mgmt but I haven't been able to find anything that can do it. I've searched through some .net classes, the ones mentioned above, and google but have come up empty.
WMI, CIM, and WMIC give me "RPC Server is unavailable".
Does anyone have any ideas about what I could use to get retrieve the Volume path for shares that are on a remote NetApp File Server?