Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用全局变量将一些信息从 Test-TargetResource 传递给 Set-TargetResource,但是当我运行我的配置时它不起作用。
您可以在 DSC 资源中使用全局变量吗?
您不能使用全局变量来执行您尝试执行的操作。建议的方法是从 Set-TargetResource 调用 Test-TargetResource。