Start-DscConfiguration无法连接服务器计算机

时间:2015-01-23 22:21:43

标签: powershell dsc

我正在尝试对远程计算机运行DSC配置,最终出现以下错误

VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
The WinRM client cannot process the request. If the authentication scheme is different from Kerberos, or if the client
computer is not joined to a domain, then HTTPS transport must be used or the destination machine must be added to the
TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts
list might not be authenticated. You can get more information about that by running the following command: winrm help
config.
    + CategoryInfo          : NotEnabled: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : HRESULT 0x803380e4
    + PSComputerName        : vishtest.timmons.com

VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 0.169 seconds

服务器运行WinRM服务并配置为通过HTTPS运行。客户端计算机可以使用Enter-PSSession命令成功连接到远程计算机。

Enter-PSSession -computerName vishtest.timmons.com -credential $credential -UseSSL

关于我在这里可能缺少的任何想法?

2 个答案:

答案 0 :(得分:5)

在一些tweep的帮助下想出来了。我不得不使用-UseSSL标志创建一个CimSession,并将该会话传递给Start-DscConfiguration命令。 Start-DscConfiguration本身没有-UseSSL选项。在目标上不需要任何DSC服务来推送配置。

答案 1 :(得分:0)

尝试运行此命令:

  

启用-PSRemoting -Force

当我遇到这个错误时,这对我总是有用!

相关问题