Powershell DSC:模块文件*ModuleName*未包含具有所需版本1.0的模块

Powershell DSC:模块文件*ModuleName*未包含具有所需版本1.0的模块,powershell,dsc,powershell-5.0,Powershell,Dsc,Powershell 5.0,我正在尝试新的所需状态配置,并尝试使用新的类资源。我已经在该过程中涉及的所有服务器上安装了WMF 5.0的预生产预览版 我有一个Http拉式服务器设置,我已经在其中部署了我的类资源 目标节点被配置为从此服务器获取其资源,而它们似乎正在这样做 但是,当我尝试将配置推出到使用该类资源的目标节点时,我得到以下错误 模块文件ModuleName不包含具有所需版本的模块 1.0。无法安装配置所需的模块依赖项。 以前有没有人遇到过这个错误,或者知道它的意思 SxSecurity.psm1文件具有以下内容,其

我正在尝试新的所需状态配置,并尝试使用新的类资源。我已经在该过程中涉及的所有服务器上安装了WMF 5.0的预生产预览版

我有一个Http拉式服务器设置,我已经在其中部署了我的类资源

目标节点被配置为从此服务器获取其资源,而它们似乎正在这样做

但是,当我尝试将配置推出到使用该类资源的目标节点时,我得到以下错误

模块文件ModuleName不包含具有所需版本的模块 1.0。无法安装配置所需的模块依赖项。

以前有没有人遇到过这个错误,或者知道它的意思

SxSecurity.psm1文件具有以下内容,其中提供了所需的版本号:

@{

# Script module or binary module file associated with this manifest.
RootModule = 'SxSecurity.psm1'

# Version number of this module.
ModuleVersion = '1.0'

# ID used to uniquely identify this module
GUID = '00293be8-be0b-4902-9b49-12e32533a414'

# Author of this module
Author = 'Alexis.Coles'

# Company or vendor of this module
CompanyName = '****'

# Copyright statement for this module
Copyright = '(c) 2015 ****. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Security dsc resources'

# Functions to export from this module
FunctionsToExport = @()

# Cmdlets to export from this module
CmdletsToExport = '*'

# Variables to export from this module
VariablesToExport = '*'

# Aliases to export from this module
AliasesToExport = '*'

# DSC resources to export from this module
DscResourcesToExport = @('SxPfxImport')

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

    PSData = @{

    } # End of PSData hashtable

} 

}

好吧,我已经成为了一个误导性错误信息的受害者,我想这是第二次,我肯定我以前在这个问题上遇到过

也许“找不到模块名”会给我指出更多正确的方向

事实证明,DSC决定将模块下载到“C:\Program Files\WindowsPowerShell\Modules”的位置不是PSModulePath环境变量的一部分

我添加了环境变量的路径,重启了服务器并恢复了操作