DSC推模式 - 复制DSC资源的最佳方式

Ade*_*nde 4 dsc

我正在探索DSC并想知道将DSC资源复制到目标主机的最佳方法是什么?

当我尝试将配置推送到目标主机时,它抱怨缺少DSC资源.

The PowerShell DSC resource xWebAdministration does not exist at the PowerShell module path nor is it registered as a WMI DSC resource.
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : DscResourceNotFound
    + PSComputerName        : server1.appman.net
Run Code Online (Sandbox Code Playgroud)

小智 7

确保资源可用的最简单方法是设置基于文件共享的存储库以下拉模块.这个博客可以帮助你解决http://nanalakshmanan.com/blog/Push-Config-Pull-Module/