Get-Database
Retrieves a Sitecore Database.
Syntax
Get-Database [[-Name] <String>] [-Item <Item>]
Detailed Description
The Get-Database command retrieves one or more Sitecore Database objects based on name or item passed to it.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-Name <String>
Name of the database to be returned.
Required?
false
Position?
1
Default Value
Accept Pipeline Input?
true (ByValue)
Accept Wildcard Characters?
false
-Item <Item>
Database returned will be taken from the item passed to the command.
Required?
false
Position?
named
Default Value
Accept Pipeline Input?
true (ByValue)
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
System.String
Outputs
The output type is the type of the objects that the cmdlet emits.
Sitecore.Data.Database
Notes
Help Author: Adam Najmanowicz, Michael West
Examples
EXAMPLE 1
EXAMPLE 2
EXAMPLE 3
Related Topics
Last updated