Get-SCSMSetting
Get-SCSMSetting
Retrieves configuration settings of System Center Service Manager.
構文
Parameter Set: FromDisplayName
Get-SCSMSetting [[-DisplayName] <String[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Parameter Set: FromId
Get-SCSMSetting [-Id] <Guid[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
詳細説明
The Get-SCSMSetting cmdlet retrieves configuration settings of System Center Service Manager.
パラメーター
-ComputerName<String[]>
Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
localhost |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Credential<PSCredential>
Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-DisplayName<String[]>
Specifies the value of the display name property of the setting to retrieve.
エイリアス |
なし |
必須? |
false |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Id<Guid[]>
Specifies the ID of the setting to retrieve.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-SCSession<Connection[]>
Specifies an object that represents the session to a Service Manager management server.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
System.String
You can pipe one of the following solution settings to the DisplayName parameter:
-- Activity Settings
-- Release Management Settings
-- Knowledge Management Settings
-- Problem Settings
-- Data Retention Settings
-- Service Request Settings
-- Incident Settings
-- Change Request SettingsSystem.Guid
You can pipe a GUID of a solution settings object to the Id parameter. You can retrieve that GUID from the __EnterpriseManagementObject property of a solution settings object by using the following command:
PS C:\> Get-SCSMSetting | ForEach-Object {$_.__EnterpriseManagementObject} | Format_Table -Property ID,DisplayName -AutoSize
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
System.WorkItem.Incident.GeneralSetting
This cmdlet returns configuration settings of System Center Service Manager.
例
Example 1: Get configuration settings for the Problem feature
This command retrieves configuration settings for the Service Manager Problem feature.
PS C:\>Get-SCSMSetting -DisplayName "Problem*"
Example 2: Get configuration settings for the Data Retention feature
This command retrieves the configuration settings for the Service Manager Data Retention feature.
PS C:\>Get-SCSMSetting -DisplayName "*Retention*"
Example 3: Get configuration settings for the Knowledge feature
This command retrieves the configuration settings for the Service Manager Knowledge Managements feature.
PS C:\>Get-SCSMSetting -DisplayName "Knowledge*"
Example 4: Get configuration settings for the Change Request feature
This command retrieves the configuration settings for the Service Manager Change Request feature, using the GUID of solution settings.
PS C:\>("Change Request Settings" | Get-SCSMSetting ).__EnterpriseManagementObject.Id | Get-SCSMSetting
Example 5: Get configuration settings for the Activity Management feature
This command retrieves the configuration settings for the Service Manager Activity Management feature.
PS C:\>Get-SCSMSetting -DisplayName "Activity*"
Example 6: Get configuration settings for the Incident Management feature
This command retrieves the configuration settings for the Service Manager Incident Management feature.
PS C:\>Get-SCSMSetting -DisplayName "Incident*"
Example 7: Get configuration settings for Service Manager
This command retrieves all the configuration settings for Service Manager.
PS C:\>Get-SCSMSetting