Get-CMDatabaseProperty

Get-CMDatabaseProperty

Gets an object that represents a Configuration Manager database.

構文

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

詳細説明

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.

パラメーター

-SiteCode<String>

Specifies the site code for a Configuration Manager site.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Get a database property

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

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

関連トピック

Set-CMDatabaseProperty