在未加入域的计算机上通过 powershell 远程管理 DC

在未加入域的计算机上通过 powershell 远程管理 DC

该怎么办?有可能吗?

答案1

您也许可以做到这一点,尽管我不能 100% 确定您是否可以指定不是 DC 的域成员的受信任主机。

about_remote_troubleshooting

当本地计算机不在域中时,需要执行以下步骤进行远程处理。

1. Configure the computer for HTTPS transport or add the names of the
   remote computers to the TrustedHosts list on the local computer.
   For instructions, see "How to Add a Computer to the TrustedHosts
   List" below.

2. Verify that a password is set on the workgroup-based computer. If a
   password is not set or the password value is empty, you cannot run
   remote commands.
   To set password for your user account, use User Accounts in Control
   Panel. 

3. Use the Credential parameter in all remote commands.
   This is required even when you are submitting the credentials
   of the current user.

要查看受信任主机的列表,请使用以下命令:

get-item wsman:\localhost\Client\TrustedHosts

To add the names of particular computers to the list of trusted hosts,
use the following command format:

set-item wsman:\localhost\Client\TrustedHosts -value <ComputerName>

相关内容