How to Determine Which User Used to Map Share Drive



Share this article :

Symptom

You want to determine which user was used to map a share drive in the Windows operating system environment.

Solution

Open the command prompt with Administrator right and execute any of below commands,

Option 1

C:\>wmic netuse get remotename,username

RemoteName      UserName
\\ITSITI\Test1  HOST1\daem
\\ITSITI\Test2  HOST1\daem

Option 2

C:\>wmic netuse where LocalName="Z:" get UserName /value

UserName=HOST1\daem

Note: The LocalName is referring to the drive letter.

Tags:

Related posts

Find Windows Product Key
Delete Windows Remote Desktop Connection Saved Credentials
How to Schedule Windows Shutdown / Restart using CMD
How to Map Network Drive in Windows
© 2018 ITsiti. All Rights Reserved
Powered by KEEM