2

The following command can be used to determine if there has been configuration drift on a system:

Test-DscConfiguration –CimSession $session 

The command only returns true or false. Is there a way to retrieve a list of what those differences are?

2
  • As I understand it, trying to take an existing server and back-port it into a configuration-management regime is usually a difficult task. Might be easier to simply build a new environment using DSC and then migrate your apps/sites/whatever into it. Commented Apr 15, 2014 at 18:31
  • It was more about determining why a server no longer matched the DSC configuration. Perhaps someone loaded or removed something from the server, etc. Commented Apr 15, 2014 at 18:52

1 Answer 1

5

Unfortunately, not at this time. You can run Test-DscConfiguration with the -Verbose switch and the verbose messages may tell you what is not in compliance. You should also be able to run Get-DscConfiguration and compare the existing state to the configuration document to see what differs, but there is no nice object structure with the components out of compliance.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.