使用管理员以外的帐户使用“net use”命令

use*_*839 2 windows

我可以使用管理员和其他帐户在 Windows 上成功使用“net use”命令。但我无法使用其他帐户转到“ \\IPAddress\c$ password /User:username”。这可以使用管理员帐户完成。

有谁知道可以解决这个问题的服务器端的设置是什么?

谢谢

bil*_*nkc 5

当您发出命令时,net use \\xxx.xxx.xxx.xxx\c$您正试图连接到称为管理共享的特殊共享

要连接到该共享,请求连接的人需要在远程计算机上的管理员组中。

你的选择是

  1. 将本地非管理员用户添加到远程服务器上的管理员组中(不太理想)
  2. 也许可以授予本地用户对远程 C$ 共享的显式权限,但我从未尝试过。
  3. 为 net use 命令提供备用凭据

    net use \xxx.xxx.xxx.xxx\c$ MySecurePassw0rd /user:RemoteComputerName\RemoteUser

净使用 /?

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}]
Run Code Online (Sandbox Code Playgroud)