0
0
PowerShellscripting~5 mins

Desired State Configuration (DSC) basics in PowerShell - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Desired State Configuration (DSC) in PowerShell?
DSC is a management platform in PowerShell that helps you define and maintain the configuration of your computers automatically, ensuring they stay in a desired state.
Click to reveal answer
beginner
What is a DSC Configuration script?
A DSC Configuration script is a special PowerShell script that defines the desired settings for a computer or environment using a declarative syntax.
Click to reveal answer
beginner
What does the 'Node' keyword do in a DSC Configuration?
The 'Node' keyword specifies which computer(s) the configuration applies to. It can be a single computer or multiple computers.
Click to reveal answer
beginner
What is a 'Resource' in DSC?
A Resource is a building block in DSC that defines how to configure a specific part of the system, like installing software or setting a service state.
Click to reveal answer
beginner
How do you apply a DSC configuration to a computer?
You compile the configuration script to create a .mof file, then use the Start-DscConfiguration cmdlet to apply it to the target computer.
Click to reveal answer
What is the main purpose of Desired State Configuration (DSC)?
ATo monitor network traffic
BTo write scripts that run only once
CTo create user accounts manually
DTo automatically keep computers in a defined configuration state
Which PowerShell keyword defines the target computers in a DSC configuration?
AResource
BNode
CConfiguration
DApply
What file type is generated after compiling a DSC configuration script?
A.mof
B.txt
C.xml
D.ps1
Which cmdlet applies a DSC configuration to a computer?
ASet-ExecutionPolicy
BInvoke-Command
CStart-DscConfiguration
DNew-Item
In DSC, what is a Resource used for?
ATo define how to configure a system component
BTo store user data
CTo write logs
DTo schedule tasks
Explain the basic workflow of creating and applying a DSC configuration.
Think about the steps from writing to applying the configuration.
You got /4 concepts.
    Describe what a DSC Resource is and give an example of its use.
    Resources are like building blocks for configurations.
    You got /3 concepts.