windows 使用管理员以外的帐户使用“net use”命令
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8607164/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Use "net use" command using the account other than Administrator
提问by user1110839
I could use "net use" command at windows successfully using both Administrator and other account. But I can't use other account to go to " \\IPAddress\c$ password /User:username". This could be done using Administrator account.
我可以使用管理员和其他帐户在 Windows 上成功使用“net use”命令。但是我不能使用其他帐户转到“ \\IPAddress\c$ password /User:username”。这可以使用管理员帐户完成。
Does anyone know what's the setting at the server side that could solve this?
有谁知道可以解决这个问题的服务器端的设置是什么?
Thanks
谢谢
回答by billinkc
When you are issuing the command net use \\xxx.xxx.xxx.xxx\c$
you are attempting to connect to a special share known as the Administrative share
当您发出命令时,net use \\xxx.xxx.xxx.xxx\c$
您正试图连接到称为管理共享的特殊共享
To connect to that share, the person requesting the connection needs to be in admin group on the remote computer.
要连接到该共享,请求连接的人需要在远程计算机上的管理员组中。
You options are
你的选择是
- Add the local non-admin users into the admin group on the remote server (less desirable)
- You mightbe able to grant the local user explicit permissions on the remote C$ share but I've never tried that.
Provide alternate credentials for the net use command
net use \xxx.xxx.xxx.xxx\c$ MySecurePassw0rd /user:RemoteComputerName\RemoteUser
- 将本地非管理员用户添加到远程服务器上的管理员组中(不太理想)
- 您也许可以授予本地用户对远程 C$ 共享的显式权限,但我从未尝试过。
为 net use 命令提供备用凭据
net use \xxx.xxx.xxx.xxx\c$ MySecurePassw0rd /user:RemoteComputerName\RemoteUser
net use /?
净使用 /?
The syntax of this command is:
NET USE
[devicename | *] [\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]