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
在运行 cmdlet 前提示你进行确认。
| 是否必需? | false | 
| 在哪里? | named | 
| 默认值 | false | 
| 是否接受管道输入? | false | 
| 是否接受通配符? | false | 
-WhatIf
显示在 cmdlet 运行时将发生的情况。该 cmdlet 不运行。
| 是否必需? | false | 
| 在哪里? | named | 
| 默认值 | false | 
| 是否接受管道输入? | false | 
| 是否接受通配符? | false | 
<CommonParameters>
此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
输入
输入类型是可以传送到 cmdlet 的对象的类型。
输出
输出类型是 cmdlet 发出的对象的类型。
示例
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"