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

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!!

Advertisements

One thought on “Desired State Configuration: Generate Configuration MOF files for all Machines in Domain Controller

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s