Determine Domain and username used to map a network drive

前端 未结 3 1989
[愿得一人]
[愿得一人] 2021-01-30 10:41

Using Windows 7 Enterprise with SP1, but I\'m hoping to get a generic answer that would apply to Windows XP/2003/2008/Vista/7.

From a command prompt, I execute a

3条回答
  •  不知归路
    2021-01-30 11:07

    WMI is your friend:

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

    UserName=rd-pc2037\Administrator
    

提交回复
热议问题