我正在尝试在 Windows Server 2012 R2 VM 上进行基本 DSC 配置,但是当我运行 Get-DscResource 时,列表中没有出现任何 xWebAdministration 资源。
当我跑
Get-Module -ListAvailable -Name x*
我得到以下
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 1.3.2 xWebAdministration
查看其他模块exportedCommands 不应为空。
关于如何解决这个问题的任何建议?
我做了什么
我已经下载了1.3.2 版本并将其解压到 C:\Program Files\WindowsPowerShell\Modules
发现此xWebAdministration 未出现在 Get-DscResource (PowerShell) 中,但结构正确。