# Get-Preset

Returns a serialization preset for use with Export-Item.

## Syntax

Get-Preset \[\[-Name] \<String\[]>]

## Detailed Description

The Get-Preset command returns a serialization preset for use with Export-Item.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

## Parameters

### -Name \<String\[]>

Name of the serialization preset.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | 1     |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

## Outputs

The output type is the type of the objects that the cmdlet emits.

* Sitecore.Data.Serialization.Presets.IncludeEntry

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE

```powershell
PS master:\> Get-Preset -Name "PowerShell", "AssetsOptimiser" | ft PresetName, Database, Path -AutoSize

PresetName      Database Path
----------      -------- ----
PowerShell      core     /sitecore/templates/Modules/PowerShell Console
PowerShell      core     /sitecore/system/Modules/PowerShell/Console Colors
PowerShell      core     /sitecore/system/Modules/PowerShell/Script Library
PowerShell      core     /sitecore/layout/Layouts/Applications/PowerShell Console
PowerShell      core     /sitecore/layout/Layouts/Applications/PowerShell ISE Sheer
PowerShell      core     /sitecore/layout/Layouts/Applications/PowerShell ISE
PowerShell      core     /sitecore/layout/Layouts/Applications/PowerShell ListView
PowerShell      core     /sitecore/content/Documents and Settings/All users/Start menu/Right/PowerShell Toolbox
PowerShell      core     /sitecore/content/Applications/PowerShell
PowerShell      core     /sitecore/content/Applications/Content Editor/Context Menues/Default/Context PowerShell Scripts
PowerShell      master   /sitecore/templates/Modules/PowerShell Console
PowerShell      master   /sitecore/system/Modules/PowerShell/Console Colors
PowerShell      master   /sitecore/system/Modules/PowerShell/Rules
PowerShell      master   /sitecore/system/Modules/PowerShell/Script Library
AssetsOptimiser master   /sitecore/system/Modules/Optimiser
```

## Related Topics

* Serialize-Item
* Deserialize-Item
* <https://github.com/SitecorePowerShell/Console/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sitecorepowershell.com/appendix/packaging/get-preset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
