【发布时间】:2012-08-02 21:09:23
【问题描述】:
是否可以使用 PowerShell v2.0 将计算机远程添加到域中?我知道 Add-Computer CMDLET,但这不适用于远程添加......但我可能错了。
【问题讨论】:
标签: powershell active-directory powershell-remoting
是否可以使用 PowerShell v2.0 将计算机远程添加到域中?我知道 Add-Computer CMDLET,但这不适用于远程添加......但我可能错了。
【问题讨论】:
标签: powershell active-directory powershell-remoting
您应该能够通过 PowerShell 远程调用 Add-Computer cmdlet。
【讨论】:
我很难找到,所以我在这里简单地发布一下:
我的问题是访问不在域中的远程计算机,因为它不在域中... :) 像鸡和蛋的问题。
问题已在此处描述、讨论和解决:Powershell remoting with ip-address as target
我的快速解决方法是在此处运行此命令。
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force
您可能希望备份当前受信任的主机并在将远程计算机加入域后重置它们。
【讨论】: