本文介绍了确定用于映射网络驱动器的域和用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Windows 7 Enterprise SP1,但我希望得到适用于Windows XP/2003/2008/Vista/7的通用答案.

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.

在命令提示符下,我执行一个 net use 命令将Z:驱动器映射到另一台计算机上的共享,但是我不使用当前的凭据,而是指定了另一个域并用户来映射驱动器.

From a command prompt, I execute a net use command to map the Z: drive to a share on another computer, but I don't use my current credentials, I specify a different domain and user to map the drive.


net use z: \\rd-pc2037\C_DRIVE password /user:rd-pc2037\Administrator

命令成功完成.现在已经映射了驱动器,如何找到成功映射驱动器所使用的域和用户名?我似乎无法通过 net use 命令找到我想要的东西.

The command completes successfully. Now that the drive is mapped, how can I find what Domain and Username I used to successfully map the drive? I can't seem to find what I want with the net use command.


C:\Users\rdomarat>net use
New connections will not be remembered.

Status       Local     Remote                    Network
----------------------------------------------------------------------------
OK           Z:        \\rd-pc2037\C_DRIVE       Microsoft Windows Network
The command completed successfully.

C:\Users\rdomarat>net use Z:
Local name        Z:
Remote name       \\rd-pc2037\C_DRIVE
Resource type     Disk
Status            OK
# Opens           0
# Connections     1
The command completed successfully.

在Windows资源管理器中检查共享的属性并查看安全性选项卡,向我展示了其他人将拥有哪些权限,但是我没有看到我使用了哪个 DOMAIN \ User .我也在注册表中进行了有限的搜索.

Checking the properties of the share in Windows Explorer and looking at the security tab showed me what permissions different people would have, but I didn't see how which DOMAIN\User I had used. I searched through the registry with limited success as well.

有什么想法吗?

推荐答案

WMI是您的朋友:

>wmic netuse,其中LocalName ="Z:"获取用户名/值

UserName=rd-pc2037\Administrator

这篇关于确定用于映射网络驱动器的域和用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:18
查看更多