【发布时间】:2017-03-27 08:00:41
【问题描述】:
是否可以从 DSC“脚本”资源写入外部变量?通过不同的脚本资源传递它? 示例:
Configuration SomeConfiguration
{
$list = @()
Script SomeScript
{
TestScript = {
$using:list += "1"
$using:list += "2"
return $false
}
SetScript = {
$using:list | Foreach-Object {
...
}
}
GetScript = { }
}
}
【问题讨论】:
标签: powershell dsc