< Back

Export-PlasterManifest

Sat Jan 18, 2020 7:05 pm

NAME Export-PlasterManifest



SYNOPSIS

Saves an XML manifest.





SYNTAX

Export-PlasterManifest [-Manifest] <String> [-Destination] <String> [[-Endcoding] <String>] [-PassThru]

[<CommonParameters>]





DESCRIPTION

Used to save the xml manifest created by New-PlasterManifestXML.





PARAMETERS

-Destination <String>

Path to save the Plaster Manifest.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Endcoding <String>

File encoding to use when saving the manifest.



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Manifest <String>

Plaster Manifest that will be saved.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

If preset will return an IO.FileInfo object for the saved file.



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

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

System.String

System.Management.Automation.SwitchParameter





OUTPUTS

System.Object







NOTES









Example 1



PlasterManifest {

Metadata {

Title = "My Posh Template"

TemplateName = 'PoshTemp'

}

Content {

File -Source 'myTemplate.txt' -Destination 'newProject.txt'

}

} | Export-PlasterManifest -Destination PlasterManifest.xml



Exports a simple Plaster Manifest to a file called 'PlasterManifest.xml' in the current directory.



RELATED LINKS