First published on TECHNET on Nov 07, 2017
**UPDATE: I have modified the script and provided better how to steps, follow these links How to... and Script download please keep reading on to understand how the script DSC_Client_Config.ps1 works
Moving along with my dive into DSC it is now time to configure our nodes, and first as a recap this is what we have done
Now we will configure our nodes to check in with the DSC server and pull MOF's or modules as they need. The script I wrote runs remotely from a central server and then it performs the following:
And how do we do this....well let's look at the script
In the first section we are creating the instructions for the nodes, there are several settings that are important to how this works like ConfigurationMode and RefreshMode. While I recommend you just go with the values I have provided you can read more about them here
The last part to this is where we iterate thru each node out of the DSCConfig.ps1 file, and then push the pfx to each node (If using a self-signed cert) so that we don't have trust issues connecting to the service. Finally we will create the MOF file (Instructions) for that node and use it with the command Set-DscLocalConfigurationManager at this point the node will run the instructions and configure DSC then register with the service on the pull server.
Once the script has completed running without error all your nodes (Read SharePoint Servers) will be configured to pull the MOF from the DSC service and build out your farm. And that will be our next step creating those MOF Files.
You can find a copy of my script here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.