Export (0) Print
Expand All
Expand Minimize

Get-CMDatabaseProperty

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

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.

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"
Key                                     Value
--- -----
SQL Server Service Broker Port 80
Retention Period 10
IsCompression 0

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft