我创建了自定义 DSC 模块。我在 DSC 资源中只有两个值,其中一个是二维数组:
node ("localhost")
{
ChangeXML ChangeValue
{
NameFile=$PathToXml #Enter path to input xml
DownloadManagerCustomData =
@(
@{
Node = 'some path';
Value = 'some value'
}#end of hash array
@{
Node = 'some path';
Value = 'some value'
}#end of hash array
)#end of two dimensional array
}
}
我创建了 ChangeXML.schema.mof,它描述了变量。所以,我不知道如何写数组。你能帮助我吗?
[ClassVersion("1.0"), FriendlyName("ChangeXML")]
class ChangeXML : OMI_BaseResource
{
[Key] String NameFile;
[Write] *Array?* DownloadManagerCustomData;
};