< Back

Join-Config

Mon Jan 13, 2020 12:35 am

NAME Join-Config



SYNOPSIS

Joins several DSC configurations





SYNTAX

Join-Config [-Configuration] <ScriptBlock[]> [-Name <String>] [<CommonParameters>]





DESCRIPTION

Joins several DSC configurations into a single DSC configuration





PARAMETERS

-Configuration <ScriptBlock[]>

The configuration



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Name <String>

The name of the new configuration. If this is not provided, the name of the first configuration will be used



Required? false

Position? named

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_IIS {



node localhost {

WindowsFeature IIS {

Ensure = ???????Present???????

Name = ???????Web-Server???????

}



}

}

}, {



configuration InstallWebServer_UrlRewrite {



node localhost {

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"

}



}

}

} | Join-Config -Name InstallIISAndUrlRewrite











RELATED LINKS

Split-Config