I'm trying to find a way to retrieve the users mapped drive letter from a network drive. I've read a few posts here but they all seem to be around mapping/unmapping drives, whereas I simply need to know what drive the user has that network drive mapped to.
From a command prompt I use: Net Use s: for example will give me the name of the networked drive (\servershare\file\sharename\shared), however
Net Use \\servershare\file\sharename\shared
just gives "The command completed successfully", where I need 'S:' returning.
How do I get the drive letter returned for a specific network drive?