共用方式為


Set-SilAggregator

Set-SilAggregator

Sets values for the polling start time and the polling interval.

語法

Parameter Set: HostPollIntervalInHours
Set-SilAggregator [-AddCertificateThumbprint <System.String[]> ] [-Force] [-HostPollIntervalInHours <Int32> ] [-PollStartTime <DateTime> ] [-RemoveCertificateThumbprint <System.String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: pollStartTime
Set-SilAggregator -PollStartTime <DateTime> [-AddCertificateThumbprint <System.String[]> ] [-Force] [-RemoveCertificateThumbprint <System.String[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細描述

The Set-SilAggregator cmdlet sets values for the polling start time and the polling interval of the Software Inventory Logging Aggregator.

參數

-AddCertificateThumbprint<System.String[]>

Specifies an array of collector thumbprints that this cmdlet adds to the aggregator. The aggregator validates incoming requests by using collector thumbprints.

別名

none

必要項?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-Force

強制執行命令,不要求使用者確認。

別名

none

必要項?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-HostPollIntervalInHours<Int32>

Specifies the polling interval in hours. 這個參數可接受的值如下: integers from 1 to 168. A value of 168 is once per week.

別名

none

必要項?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-PollStartTime<DateTime>

Specifies the polling start date and time, at least one hour in the future.

別名

none

必要項?

true

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-RemoveCertificateThumbprint<System.String[]>

Specifies an array of collector thumbprints that this cmdlet removes from the aggregator.

別名

none

必要項?

false

位置?

named

預設值

none

接受管線輸入?

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: Set polling interval

This command sets the value of the host polling interval to every five hours.

PS C:\> Set-SilAggregator -HostPollIntervalInHours 5

Example 2: Set start time for polling

This command sets the value of time to start host polling.

PS C:\> Set-SilAggregator -PollStartTime "2014-10-01 15:08:46" 

Example 3: Set aggregator values

This command sets the value of the host polling interval to every five hours and sets the value of time to start host polling.

PS C:\> Set-SilAggregator -HostPollIntervalInHours 5 -PollStartTime "2014-10-01 15:08:46"

Example 4: Add Certificate Thumbprint

This command adds a certificate thumbprint. The local Aggregator now accepts this thumbprint.

PS C:\> Set-SilAggregator –AddCertificateThumbprint "a612eb2dec5e2336e3e7ab116e7ca43eb5f9960b"

相關主題

Get-SilAggregator

Start-SilAggregator

Stop-SilAggregator

Software Inventory Logging Cmdlets in Windows PowerShell