我正在尝试新的 Desired state 配置内容并尝试使用新的类资源。我已经在该过程涉及的所有服务器上安装了 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
}
}