Set-SCACAdminSetting

Set-SCACAdminSetting

Sets an administrator setting to a specified value.

構文

Parameter Set: AdminSettingBySettingObject
Set-SCACAdminSetting [-AdminSetting] <ACAdminSetting> [-Value] <Int32> [-PassThru] [ <CommonParameters>]

Parameter Set: CEIP
Set-SCACAdminSetting -CEIPEnabled <Int32> [-PassThru] [ <CommonParameters>]

Parameter Set: JobHistoryPeriod
Set-SCACAdminSetting -JobHistoryPeriodInDays <Int32> [-PassThru] [ <CommonParameters>]

Parameter Set: RefreshInterval
Set-SCACAdminSetting -RefreshIntervalInSeconds <Int32> [-PassThru] [ <CommonParameters>]

詳細説明

The Set-SCACAdminSetting cmdlet sets an administrator setting to a specified value.

パラメーター

-AdminSetting<ACAdminSetting>

Specifies an administator setting object. To get an administrator setting object, use the Get-SCAdminSetting cmdlet.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

True (ByValue)

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

false

-CEIPEnabled<Int32>

Specifies whether participation in the Microsoft Customer Experience Improvement Program (CEIP) is enabled. Valid values are:

-- 0 = Not enabled

-- 1 = Enabled

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-JobHistoryPeriodInDays<Int32>

Specifies the number of days for the job history period.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-PassThru

Returns an administrator setting object. By default, this cmdlet does not generate output.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-RefreshIntervalInSeconds<Int32>

Specifies the number of seconds for the refresh interval.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-Value<Int32>

Specifies the value for an administrator setting. Valid values are integers.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAdminSetting, System.String, System.Int32

出力

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

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAdminSetting

Example 1: Set the JobHistoryPeriodInDays administrator setting

This command sets the JobHistoryPeriodInDays administrator setting to 60.

PS C:\> Set-SCACAdminSetting -JobHistoryPeriodInDays 60

Example 2: Enable the CEIPEnabled administrator setting

This command enables the CEIP setting by setting the CEIPEnabled administrator setting to 1.

PS C:\> Set-SCACAdminSetting –CEIPEnabled “1”

Example 3: Update the value for the RefreshIntervalInSeconds administrator setting

The first command gets the administrator setting object named RefreshIntervalInSeconds and stores the object in the $Setting variable.

The second command sets the value for the administrator setting stored in $Setting (RefreshIntervalInSeconds) to 30.

PS C:\> $Setting = Get-SCACAdminSetting -RefreshIntervalInSeconds
PS C:\> Set-SCACAdminSetting -AdminSetting $Setting -Value 30

関連トピック

Get-SCACAdminSetting