I have several scripts that must use UNC paths - not DFS - and would like to be able to determine the UNC path programmatically from the DFS path. For example, we have something like:
\\domain\fs\Home\HomeFolder\MyUserID
and I would like to get from it the UNC path like this:
\\Server1\HomeFolder\MyUserID
I cannot count on a utility like DFSUtil.exe to be available. It will need to be in VBScript.
I found the following code in NET which uses WMI but I can't tease out what's happening to convert it to a usable VBS: http://www.codeproject.com/Tips/158829/Convert-a-file-path-to-a-UNC-Path
Can anyone lend a hand? I'm lost in translation (don't speak NET)...