All,
I am in the process of testing/evaluating DSC and the director at this company is not liking the lack of reporting that DSC provides. One of his main concerns is that he does not see a way prior to deploying DSC to see what changes DSC is going to make. Say we are going to deploy a DSC configuration to some nodes, he would like to know prior to deployment or prior to any changes being made what changes will be made on a said node based on its current configuration. Does anyone know of a way to do this via DSC? So far I have only been able to tell him that we need to run our our reports of the servers configs prior to DSC and then compare to the DSC config.
Second, I am working with the Sept 2015 preview of MGMG framework 5 and the Test-DSCConfiguration -detailed and am trying to clean out the output so it can be used to what is in DSC Compliance and what is not. The output from this command is basically unreadable. It puts all the ‘ResourcesInDesiredState’ and ‘ResourcesNotInDesiredState’ in one array/line. One a large config this is unusable.
Here is what I have tried to no avail:
$InDS = {$_.ResourcesInDesiredState} $NotInDS = {$_.ResourcesNotInDesiredState} $Seperator = "," $NewLine = $InDS -split $Seperator Test-DscConfiguration -detailed | select-object PSComputerName,{$NewLine},ResourcesNotInDesiredState,InDesiredState
I realize that the ‘ResourceNotInDesiredState’ portion hasn’t been flushed out. I figure once I get the ‘ResourceInDesiredState’ worked out I can just duplicate the process. Any and all help is greatly appreciated.
Thanks,
Ed