POSHScript: Generate DSC nodes compliance report

It is important to follow the deployment of your DSC configurations and especially the compliance of your nodes. How would you know if a node has recovered its configuration, or the time at which the node queried the Pull server? Well, that is the role of the compliance server to notify you with this sort of information.

It is possible to obtain more information about each node with the following properties:

  • TargetName: Node name.
  • ConfigurationID: Configuration ID associated with the node.
  • StatusCode: The status of very last pull operation on the node.
  • NodeCompliant: Chck if the node configuration is in sync with the Pull server or not.
  • ServerCheckSum: Checksum of the configuration mof file stored on the pull server.
  • TargetCheckSum: Checksum of the configuration mof file that was applied on the code.
  • LastComplianceTime: Last time the node ran the configuration successfully.
  • LastHeartbeatTime: Last time the node connected to Pull server/
  • Dirty: True if node status was recorded in the datatse, and false if not.

So I wrote this script to generate a report in HTML format. The ouput is below:

You can download the script on Technet Gallery

 

Thanks for reading! You can follow me on Twitter @PrigentNico

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.