# Get-LayoutDevice

Returns the layout for the specified device.

## Syntax

```powershell
Get-LayoutDevice [-Name] <String>

Get-LayoutDevice [-Default]
```

## Detailed Description

The Get-LayoutDevice command returns the layout for the specified device.

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

## Parameters

### -Name \<String>

Name of the device to return.

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

### -Default \<SwitchParameter>

Determines that a default system layout device should be returned.

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

## Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

* Sitecore.Data.Items.Item

## Outputs

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

* Sitecore.Data.Items.DeviceItem

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE 1

Get Print device

```powershell
PS master:\> Get-LayoutDevice "Print"
```

### EXAMPLE 2

Get default device

```powershell
PS master:\> Get-LayoutDevice -Default
```

### EXAMPLE 3

Get all layout devices

```powershell
PS master:\> Get-LayoutDevice *
```

## Related Topics

* <https://github.com/SitecorePowerShell/Console/>
* [Add-Rendering](https://doc.sitecorepowershell.com/appendix/presentation/add-rendering)
* [New-Rendering](https://doc.sitecorepowershell.com/appendix/presentation/new-rendering)
* [Set-Rendering](https://doc.sitecorepowershell.com/appendix/presentation/set-rendering)
* [Get-Rendering](https://doc.sitecorepowershell.com/appendix/presentation/get-rendering)
* [Remove-Rendering](https://doc.sitecorepowershell.com/appendix/presentation/remove-rendering)
* [Get-Layout](https://doc.sitecorepowershell.com/appendix/presentation/get-layout)
* [Set-Layout](https://doc.sitecorepowershell.com/appendix/presentation/set-layout)
