Script to list current user's mapped network drives

Posted by Dmart on Server Fault See other posts from Server Fault or by Dmart
Published on 2009-11-05T17:04:49Z Indexed on 2010/04/13 18:43 UTC
Read the original article Hit count: 333

I have a Windows XP/ Server 2003 environment here users have mapped different network drives themselves using arbitrary drive letters. Some of these users do not know how to tell the true UNC path of these drives, and I would like to be able to run a script or program to query those drives and show me the drive letters and the corresponding UNC paths. I would like to see output like "net use" in that user's context so that I can see what drives THEY have mapped. I would need to do this using my own admin account, which is where the difficulty lies. I understand this information would be stored in the HKCU registry? I would love to be able to do this in Powershell, but a vbscript or even a standalone executable would do. Thanks.

© Server Fault or respective owner

Related posts about windows-xp

Related posts about scripting