xWebAdministration 资源未出现在 Get-DscResource 中

xWebAdministration resources does not appear in Get-DscResource

我正在尝试在 Windows Server 2012 R2 VM 上进行基本的 DSC 配置,但是当我 运行 Get-DscResource 时,出现 none 的 xWebAdministration 资源在列表中。

当我运行

Get-Module -ListAvailable -Name x*

我得到以下内容

Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   1.3.2      xWebAdministration

查看其他模块exportedCommands不应该为空

关于如何解决这个问题有什么建议吗?

我做了什么

我已经下载 version 1.3.2 并将其解压到 C:\Program Files\WindowsPowerShell\Modules

找到这个 但结构正确。

安装 WMF 5.0 Preview 解决了这个问题。

我恢复到快照并确保我的 VM 完全是最新的,这也解决了这个问题。看来我错过了更新。