From the course: PowerShell: Scripting for Advanced Automation

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

What is DSC and how does it work?

What is DSC and how does it work?

From the course: PowerShell: Scripting for Advanced Automation

Start my 1-month free trial

What is DSC and how does it work?

- [Instructor] The most common starting point in troubleshooting any IT problems seems to be asking the question, what changed? Sometimes it comes out more like what did you do, or who touched my server, but ultimately it's the same question. We all ask this because it helps us track down the difference between a working configuration and whatever current state we're looking at. PowerShell 4.0 shipped with a tool that can make this question obsolete. That tool is Desired State Configuration, or DSC. A quick overview of DSC starts with the premise that there are things that need to be configured. Services, installed packages, users, just to name a few. And the second premise is that all of these objects can be configured using PowerShell scripts. In DSC, there are rules that define how you write these scripts. The most important rule is that they have to be idempotent. If you've never heard the word idempotent used in any other context, don't worry, it just means that the script can be…

Contents