Bird
0
0

What will happen if you run the following command after compiling a DSC configuration?

medium📝 Command Output Q5 of 15
PowerShell - Automation Patterns
What will happen if you run the following command after compiling a DSC configuration?
Start-DscConfiguration -Path .\SampleConfig -Wait -Verbose
ACompiles the configuration again and saves it to SampleConfig folder.
BApplies the configuration in the SampleConfig folder to the local machine.
CDeletes the SampleConfig folder after applying configuration.
DStarts a new PowerShell session with SampleConfig loaded.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Start-DscConfiguration cmdlet

    This cmdlet applies the compiled DSC configuration from the specified path to the target node.
  2. Step 2: Analyze command parameters

    -Path points to the folder with .mof files, -Wait waits for completion, -Verbose shows details.
  3. Final Answer:

    Applies the configuration in the SampleConfig folder to the local machine. -> Option B
  4. Quick Check:

    Start-DscConfiguration applies config from path [OK]
Quick Trick: Start-DscConfiguration applies, does not compile [OK]
Common Mistakes:
  • Thinking it compiles configuration
  • Assuming it deletes files
  • Confusing it with session commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes