Set-SmaAdminConfiguration
Set-SmaAdminConfiguration
Modifies administrative configuration settings in .
構文
Parameter Set: Default
Set-SmaAdminConfiguration -WebServiceEndpoint <String> [-AuthenticationType <String> ] [-CEIP <Boolean> ] [-ChartTimeSliceSampleSize <ChartTimeSliceSampleSize> ] [-Credential <PSCredential> ] [-DrainTimeInSeconds <Int32> ] [-Force] [-MaxJobRecords <Int32> ] [-Port <Int32> ] [-PurgeJobsOlderThanCountDays <Int32> ] [-ScriptExecutionPolicy <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-SmaAdminConfiguration cmdlet modifies administration configuration settings in . Specify the web service endpoint and, if necessary, a port.
Use this cmdlet to configure the following settings :
-- Participation in the Customer Experience Improvement Program (CEIP)
-- Drain time
-- Script execution policy
-- Chart time slice sample size
-- The maximum job records to store before purging the oldest jobs
-- The maximum age of a job before it is purged
パラメーター
-AuthenticationType<String>
Specifies the authentication type. Valid values are: Basic, Windows.
Windows is the default value. If you use Basic authentication, you must provide credentials by using the Credential parameter.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
Windows |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-CEIP<Boolean>
Indicates whether CEIP is enabled.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ChartTimeSliceSampleSize<ChartTimeSliceSampleSize>
Specifies the chart time slice sample size. Valid values are:
-- Small
-- Medium
-- Large
-- ExtraLarge
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Credential<PSCredential>
Specifies user credentials, as a PSCredential object, to use for the connection to the web service. To obtain a credential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential
.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DrainTimeInSeconds<Int32>
Specifies the time, in seconds, after which the runbook worker hosts terminate running jobs after a runbook worker service stop has been initiated. While the host is draining, existing jobs are given the specified drain time seconds to suspend or terminate naturally, and no new jobs are accepted.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Force
Modifies the configuration without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-MaxJobRecords<Int32>
Specifies the maximum number of job records that are retained.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Port<Int32>
Specifies the port number of the web service.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PurgeJobsOlderThanCountDays<Int32>
Specifies the number of days job history is kept. Jobs older than this number of days are purged.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ScriptExecutionPolicy<String>
Determines the Windows PowerShell execution policy for runbook jobs on the worker hosts. For information about execution policies, type Get-Help about_Execution_Policies
. Valid values for this parameter are:
-- Restricted. You cannot run scripts. You can use Windows PowerShell only in interactive mode.
-- AllSigned. You can run only scripts signed by a trusted publisher.
-- RemoteSigned. Downloaded scripts must be signed by a trusted publisher before you can run the scripts.
-- Unrestricted. No restrictions; you can run all Windows PowerShell scripts.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WebServiceEndpoint<String>
Specifies the endpoint, as a URL, of the web service. Include the protocol, for example, http:// or https://.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Modify an administrative configuration setting
This command sets the drain time to 60 seconds.
PS C:\> Set-SmaAdminConfiguration -WebServiceEndpoint "https://contoso.com/app01" -DrainTimeInSeconds 60