Bird
0
0

After running this DSC configuration, what is the default name of the generated MOF file?

medium📝 Command Output Q4 of 15
PowerShell - Automation Patterns
After running this DSC configuration, what is the default name of the generated MOF file?
Configuration MySetup {
  Node 'Server01' {
    File LogFile {
      DestinationPath = 'C:\Logs\app.log'
      Contents = 'Log initialized'
    }
  }
}
MySetup
AServer01.mof
BMySetup.mof
CLogFile.mof
Dapp.log.mof
Step-by-Step Solution
Solution:
  1. Step 1: Understand MOF file naming

    DSC generates MOF files named after the Node specified in the configuration.
  2. Step 2: Identify node name

    The node is 'Server01', so the MOF file will be Server01.mof.
  3. Final Answer:

    Server01.mof -> Option A
  4. Quick Check:

    MOF files are named after nodes, not configuration or resource names [OK]
Quick Trick: MOF files named after Node, not config or resource [OK]
Common Mistakes:
  • Assuming MOF file is named after configuration
  • Using resource name as MOF file name
  • Appending file extensions incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes