Desired State Configuration: Generate Configuration MOF files for all Machines in Domain Controller

Written by:

The Node element within DSC Configuration accepts an array as computer names. We can use Powershell to generate computer names in the form of an array and pass the same to the node element.

This would generate a unique MOF file for each computer name found in Domain controller.

DSC Node

It would generate multiple MOF files at “C:\MofFiles” folder, each representing a computer or server.

Hope you would find this post useful.

Cheers!!

One response to “Desired State Configuration: Generate Configuration MOF files for all Machines in Domain Controller”

  1. Desired State Configuration: Configuring LCM of all machines in Domain Controller (Pull mode) | Automation Next Avatar
    Desired State Configuration: Configuring LCM of all machines in Domain Controller (Pull mode) | Automation Next

    […] post on generating and applying the MOF files to all machines available within a domain controller (Here), we can use the same concept to configure Local Configuration Manager of all Machines in a domain […]

Leave a comment