< Back
Split-Config
Post
NAME Split-Config
SYNOPSIS
Splits a DSC configuration
SYNTAX
Split-Config [-Configuration] <ScriptBlock> [[-ExcludeNode] <String[]>] [[-ExcludeResource] <String[]>]
[[-ExcludeSettingName] <String[]>] [<CommonParameters>]
DESCRIPTION
Splits a single DSC configuration into multiple DSC configurations
PARAMETERS
-Configuration <ScriptBlock>
The configuration
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-ExcludeNode <String[]>
If -ExcludeNode is provided, any DSC resources within an excluded node will be ignored
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExcludeResource <String[]>
If -ExcludeResource is provided, any DSC resource section with a given resource name will be ignored
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExcludeSettingName <String[]>
If -ExcludeSettinngName is provided, any DSC resource section with a given setting name will be ignored
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Management.Automation.ScriptBlock
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>{
configuration InstallWebServer {
node localhost {
WindowsFeature IIS {
Ensure = ???????Present???????
Name = ???????Web-Server???????
}
Package UrlRewrite {
#Install URL Rewrite module for IIS
Ensure = "Present"
Name = "IIS URL Rewrite Module 2"
Path =
"http://download.microsoft.com/download/ ... tw_x64.msi"
Arguments = "/quiet"
ProductId = "EB675D0A-2C95-405B-BEE8-B42A65D23E11"
}
}
}
} |
Split-Config
RELATED LINKS
Join-Config
SYNOPSIS
Splits a DSC configuration
SYNTAX
Split-Config [-Configuration] <ScriptBlock> [[-ExcludeNode] <String[]>] [[-ExcludeResource] <String[]>]
[[-ExcludeSettingName] <String[]>] [<CommonParameters>]
DESCRIPTION
Splits a single DSC configuration into multiple DSC configurations
PARAMETERS
-Configuration <ScriptBlock>
The configuration
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-ExcludeNode <String[]>
If -ExcludeNode is provided, any DSC resources within an excluded node will be ignored
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExcludeResource <String[]>
If -ExcludeResource is provided, any DSC resource section with a given resource name will be ignored
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ExcludeSettingName <String[]>
If -ExcludeSettinngName is provided, any DSC resource section with a given setting name will be ignored
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Management.Automation.ScriptBlock
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>{
configuration InstallWebServer {
node localhost {
WindowsFeature IIS {
Ensure = ???????Present???????
Name = ???????Web-Server???????
}
Package UrlRewrite {
#Install URL Rewrite module for IIS
Ensure = "Present"
Name = "IIS URL Rewrite Module 2"
Path =
"http://download.microsoft.com/download/ ... tw_x64.msi"
Arguments = "/quiet"
ProductId = "EB675D0A-2C95-405B-BEE8-B42A65D23E11"
}
}
}
} |
Split-Config
RELATED LINKS
Join-Config