【发布时间】:2016-11-17 09:03:19
【问题描述】:
我创建了一个简单的 MOF 文件:
Configuration ConfigName
{
Node NB05
{
File ResName
{
}
编辑 1
这不是一个mof文件,而是一个必须编译成mof文件的文件。这将是另一个问题的焦点,因为这个问题仍然适用。
我尝试使用以下命令应用它:
PS C:\var\DSC> Start-DscConfiguration
Cmdlet Start-DscConfiguration at position 1 in the command pipeline
Please specify values for the follwing parameters:
Path: .\Configurations
Id Name PSJobTypeName State HasMoreData Location Command
-- ---- ------------- ----- ----------- -------- -------
1 Job1 Configuratio... Running True c1 Start-DscConfiguration
问题
- 它说“正在运行”,但我如何确定它已完成?
- 即使我在配置文件中出错,说我写的是 NNNode,它根本不会出错,但也会显示“正在运行”。它应该如何工作?
【问题讨论】:
标签: powershell dsc