问题描述
我正在尝试以自动化方式(不实施WSUS或其他方式)在许多服务器上安装4.6.2.我的目标是在以这种方式配置其他方面时利用PowerShell DSC.
I'm trying to install 4.6.2 on a number of servers in an automated way (no implementation of WSUS or otherwise). My goal was to leverage PowerShell DSC as we are configuring other aspects that way.
但是,我尝试过的资源(来自xWindowsUpdate的xHotfix和来自xPSDesiredStateConfiguration的xPackage)已失败.xHotfix说下载的文件无效(来自 https://support.microsoft.com/en-us/kb/3151800 )以及本机Package和xPackage资源需要一个ProductId ...似乎也不可用.
However, the resources I've tried (xHotfix from xWindowsUpdate and xPackage from xPSDesiredStateConfiguration) have failed. xHotfix says the downloaded files are invalid (from https://support.microsoft.com/en-us/kb/3151800) and the native Package and xPackage resources require a ProductId...which doesn't seem to be available either.
有人通过PowerShell DSC成功部署了4.6.2并可以提供一些指针吗?
Has anyone successfully deployed 4.6.2 via PowerShell DSC that can provide some pointers?
推荐答案
从另一个SO问题中借用()我选择开发自定义资源来处理此问题,因为我不喜欢脚本资源,因为他们感到脆弱...
Borrowing from another SO question (Failure Installing DotNet 4.6.1 via Chocolatey using DSC cChocoPackageInstaller) I opted to develop a custom resource to handle this because I'm not a fan of script resources as they feel brittle...
这两个选项(使用脚本或脚本资源)也可以正常工作.我只是选择开发自定义资源来进行更多控制.
Both options (using a script or using a script resource) would work as well. I just chose to develop a custom resource for more control.
这篇关于使用DSC的.net Framework 4.6.2的无人参与安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!