Get-CMDatabaseProperty

Get-CMDatabaseProperty

Gets an object that represents a Configuration Manager database.

Syntax

Parameter Set: SearchBySiteCode
Get-CMDatabaseProperty -SiteCode <String> [ <CommonParameters>]

Detailed Description

The Get-CMDatabaseProperty cmdlet gets an object that represents a Microsoft System Center 2012 Configuration Manager database. Use the site code for a site to specify a database.

When this cmdlet returns a database object in the console, it displays current settings for data compression, Broker port for the computer that runs Microsoft SQL Server, and the length of time that the database keeps data. You can use the Set-CMDatabaseProperty cmdlet to change these values.

Parameters

-SiteCode<String>

Specifies the site code for a Configuration Manager site.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

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

Outputs

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

Examples

Example 1: Get a database property

This example gets the database property for the site that has the site code CM2.

PS C:\> Get-CMDatabaseProperty -SiteCode "CM2"

Set-CMDatabaseProperty