Skip to content

Split-M365DSCConfiguration

Description

Parses Node localhost resource blocks and writes chunked configuration files based on maximum file size and optional resource count limits.

Output

This function does not generate any output.

Parameters

Parameter Required DataType Default Value Allowed Values Description
Path True String Specifies the source configuration file path.
OutputFolder False String Specifies the destination folder for split files.
MaxFileSizeMB False Double 3 Specifies the maximum file size per output file in megabytes.
MaxResources False Int32 0 Specifies the maximum number of resource blocks per output file.

Examples

-------------------------- EXAMPLE 1 --------------------------

Split-M365DSCConfiguration -Path 'C:\Configs\M365TenantConfig.ps1' -OutputFolder 'C:\Configs\Split' -MaxFileSizeMB 2 -MaxResources 50 This example splits the 'M365TenantConfig.ps1' file into smaller files, each with a maximum size of 2 MB and a maximum of 50 resources, saving them in the 'C:\Configs\Split' folder.