Find what server a DFS link points to.
I am writing a script to find out where a user is logged in.
the script first looks at the users profile path and then passes that to code which queries LanManServer that the users profile is on for the sessions and looks for the users session on there.
But this does not work with the DFS path i need to be able to convert the DFS path to the Server and share that it is on.
Please help.

