concept partial configuration in category powershell

This is an excerpt from Manning's book Windows PowerShell in Action, Third Edition.
The first job is to modify the LCM. Use listing 18.10 to originally configure the target machine to use a pull server. That listing can be modified, as shown in the following listing, to also include the definition of the partial configurations to use.
Listing 18.14. Modifying the LCM to use partial configurations in pull mode
[DSCLocalConfigurationManager()] Configuration LCMpull { param ( [Parameter(Mandatory=$true)] [string[]]$ComputerName, [Parameter(Mandatory=$true)] [string]$guid, [Parameter(Mandatory=$true)] [string]$ThumbPrint ) Node $ComputerName { Settings { AllowModuleOverwrite = $True ConfigurationMode = 'ApplyAndAutoCorrect' RefreshMode = 'Pull' ConfigurationID = $guid } ConfigurationRepositoryWeb DSCHTTPS { ServerURL = 'https://W16DSC02:8080/PSDSCPullServer.svc' CertificateID = $thumbprint AllowUnsecureConnection = $false } ReportServerWeb RepSrv { ServerURL = 'http://W16DSC02:9080/PSDSCPullServer.svc' CertificateID = 'AllowUnencryptedTraffic' AllowUnsecureConnection = $true } PartialConfiguration EnvVarConfig { 1 Description = 'Sets the environmental variable' ConfigurationSource = '[ConfigurationRepositoryWeb]DSCHTTPS' RefreshMode = 'Pull' } PartialConfiguration RegConfig { 2 Description = 'Sets the registry key' ConfigurationSource = '[ConfigurationRepositoryWeb]DSCHTTPS' RefreshMode = 'Pull' } } } #$guid = New-Guid | select -ExpandProperty Guid $guid = '5827c542-20bb-487c-89cb-484cbe5f0b1f' $thumbprint=Invoke-Command -Computername W16DSC02 { Get-Childitem Cert:\LocalMachine\My | where Subject -Like 'CN=W16DSC02*' | Select-Object -ExpandProperty ThumbPrint} LCMpull -computername W16TGT01 -Guid $guid ` -Thumbprint $thumbprint -OutputPath .\MOF
Why would you want to use partial configurations? Isn’t life complicated enough without splitting your configurations into a number of pieces?
The assumption behind partial configurations is that your environment isn’t managed by a single team (or single person, in smaller environments). You might have a team that manages the operating system on your servers, but other teams manage the applications, such as SQL Server, Exchange, or SharePoint. Alternatively, developers creating a new application may split the management of the configuration. In either case, a single configuration can’t be created to manage the target server due to permissions, skillset, or even office politics!
Partial configurations enable each team to create the configuration to manage their part of the environment. The server team creates a configuration to manage the operating system, and then other teams create configurations to manage the applications such as SQL Server, Exchange or your inhouse developed application. This also has the advantage of reducing the size of the individual configuration scripts.
The partial configurations can be pushed to the target machine, or the target can obtain the partial configurations from a pull server. If required, you can even use a mixture of push and pull modes to deliver the partial configurations.
Partial configurations could also be useful even if you have a team responsible for configuration work. You could use them to split up a large configuration and make it more manageable.