September 2017
Beginner to intermediate
272 pages
8h 8m
English
The first variable to cover is the $AllNodes variable. $AllNodes refers to the entire collection of nodes defined in a ConfigurationData set. $AllNodes is an array of hash tables that contain the information for all target nodes. The hash table can contain any set of information you need as long as each hash table has a key called NodeName:
@{ AllNodes = @( @{ NodeName = "server1" }, @{ NodeName = "server2" } );}
DSC requires NodeName because each hash table represents a target node. This allows us to specify information for a specific node on a granular level. Imagine a set of servers that has to have a file placed in a different path depending on some aspect of the server, so each server has a different path. In each hash table ...
Read now
Unlock full access