PowerShell: Automating Administrative Tasks
by Michael Shepard, Chendrayan Venkatesan, Sherif Talaat, Brenton J.W. Blawat
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access