Detecting and restoring drifting configurations

PowerShell's integration with DSC provides the ability to evaluate the current state of the desired configuration on a system. After the configuration has been set on the system, you have the ability to check the current configuration using the get-dscconfiguration cmdlet. By simply calling get-dscconfiguration, the PowerShell cmdlet will evaluate what DSC items have been designated for the system, and how they were configured.

You may also want to determine if the system has drifted from the existing configuration set. Drifting happens when engineers modify a system, or additional software changes the configuration of that server. To test the existing configuration set, you can leverage the test-dscconfiguration ...

Get Mastering Windows PowerShell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.