O'Reilly logo

Learning PowerShell DSC by James Pogran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Registering target nodes with a DSC Pull Server

Now that the DSC Pull Server is set up and verified as working, we can address telling the target nodes where the DSC Pull Server is. We do this by configuring the LCM with the endpoint information for the DSC Pull Server; there isn't a self-discovery method to use.

Registering a WMF 4 target node

Notice how this is a similar DSC configuration script to any we have used so far, until we get to the keyword LocalConfigurationManager. We use this keyword to configure the local LCM to operate how we want it to:

Configuration WMF4TargetNodeLCM
{
  Node $AllNodes.Where({ $_.Roles -contains 'Target'}).NodeName
  {
    LocalConfigurationManager
    {
      ConfigurationId     = $Node.ConfigurationId
 RefreshMode = $Node.RefreshMode ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required