< Back

Copy-CMBuildTemplate

Mon Jan 13, 2020 3:44 am

NAME Copy-CMBuildTemplate



SYNOPSIS

Clone the default XML templates for custom needs





SYNTAX

Copy-CMBuildTemplate [[-Source1] <String>] [[-Source2] <String>] [-Type] <String> [[-OutputPath] <String>]

[-NoScrub] [<CommonParameters>]





DESCRIPTION

Clones the default XML templates for cmbuild and cmsiteconfig

for use offline or publishing to a different online location.





PARAMETERS

-Source1 <String>

Path to source cmbuild xml template.



Required? false

Position? 1

Default value https://raw.githubusercontent.com/Skatt ... _build.xml

Accept pipeline input? false

Accept wildcard characters? false



-Source2 <String>

Path to source cmsiteconfig xml template.



Required? false

Position? 2

Default value https://raw.githubusercontent.com/Skatt ... config.xml

Accept pipeline input? false

Accept wildcard characters? false



-Type <String>

Template option: cmbuild, cmsiteconfig, both.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OutputPath <String>



Required? false

Position? 4

Default value $PWD.Path

Accept pipeline input? false

Accept wildcard characters? false



-NoScrub [<SwitchParameter>]

Copy templates without clearing settings



Required? false

Position? named

Default value False

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



NOTES





1.0.6 - 11/16/2017 - David Stein



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



PS C:\\>Copy-CMBuildTemplate -Type both -OutputPath '.\\control'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Copy-CMBuildTemplate -Type cmbuild -NoScrub















RELATED LINKS