2

我想定义一个使用 Install-Package 安装 xSystemSecurity 然后导入它并定义禁用 IE ESC 的资源的单个配置。

这可以在具有脚本资源和 xSystemSecurity 资源的单个配置中完成吗?

一旦我尝试在配置顶部导入 xSystemSecurity,DSC 就会爆炸,因为它尚未安装。

4

2 回答 2

2

DSC validates all resources in a configuration before it applies any changes. In order to do this, all resources must already be present on the box or available from a pull server. This means that you can't both install and use a resource in the same configuration. The best solution is to use the pull server to deploy the resource. If you can't use the pull server, then you have to use a 2 step process.

于 2016-04-11T00:55:14.877 回答
1

这是使用文件共享设置模块存储库的简单方法http://nanalakshmanan.com/blog/Push-Config-Pull-Module/

于 2016-04-11T17:57:03.127 回答