ProcessPrivileges with UNC path

Oct 2, 2015 at 2:36 PM
I need to be able to get the DIR size of multiple servers via a UNC path. Local DIRs work fine and I am able to read files i dont have access to. But UNC paths give me this:

The symbolic link cannot be followed because its type is disabled

Any ideas?

code structure here:

using (new ProcessPrivileges.PrivilegeEnabler(Process.GetCurrentProcess(), Privilege.Backup))

            DirectoryInfo DirInfo = new DirectoryInfo(parentDirectory);

                foreach (FileInfo fi in DirInfo.EnumerateFiles("*",      SearchOption.AllDirectories))