【问题标题】:PowerShell Remote join to domainPowerShell 远程加入域
【发布时间】:2012-08-02 21:09:23
【问题描述】:

是否可以使用 PowerShell v2.0 将计算机远程添加到域中?我知道 Add-Computer CMDLET,但这不适用于远程添加......但我可能错了。

【问题讨论】:

    标签: powershell active-directory powershell-remoting


    【解决方案1】:

    您应该能够通过 PowerShell 远程调用 Add-Computer cmdlet。

    【讨论】:

    • 所以你说的是远程使用远程桌面然后运行 ​​Add-Computer
    • 不,我是说你应该使用PowerShell Remoting
    【解决方案2】:

    我很难找到,所以我在这里简单地发布一下:

    我的问题是访问不在域中的远程计算机,因为它不在域中... :) 像鸡和蛋的问题。

    问题已在此处描述、讨论和解决:Powershell remoting with ip-address as target

    我的快速解决方法是在此处运行此命令。

        Set-Item WSMan:\localhost\Client\TrustedHosts -Value "*" -Force
    

    您可能希望备份当前受信任的主机并在将远程计算机加入域后重置它们。

    【讨论】:

      猜你喜欢
      • 2016-09-20
      • 2022-08-11
      • 1970-01-01
      • 2014-09-30
      • 2021-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多