How To Retrieve DSC Report Server Reports With PowerShell

When a node is configured to to pull configurations from a DSC pull server, it can also be configured to send reports about its configuration status to a report server. The report server can be queried to retrieve these reports through the DSC web service.

In this Snip, Matt will briefly demonstrate how to set up a node to use a DSC report server. Then we will construct a function that will use Invoke-WebRequest to query the report server using the node’s AgentId. Once we have the report data, we will use PowerShell to sort the status reports and view information such as ResourcesNotInDesiredState, ResourcesInDesiredState, MetaConfiguration and more.

Prerequisites include: PowerShell 5.0 or higher DSC Pull Server DSC configuration