Publish-SilData

Publish-SilData

Initiates a point in time collection of Software Inventory Logging data and forwards it, along with any accumulated historical data, to the aggregation server. Windows Server 2012 R2 with KB3000850 applied. For more information, see https://support.microsoft.com/kb/3000850.

语法

Parameter Set: CollectThenFlush
Publish-SilData [[-FileName] <String> ] [-AsJob] [-CheckCollectionHistory] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: FlushOnly
Publish-SilData [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [-UseCacheOnly] [ <CommonParameters>]

详细说明

The Publish-SilData cmdlet initiates a point in time collection of all Software Inventory Logging data, and forwards the data over the network to an aggregation server, if one is specified. To identify the aggregation server, specify the TargetUri parameter of the Set-SilLogging cmdlet. If Software Inventory Logging was started by an administrator by using the Start-SilLogging cmdlet, hourly collection and forwarding of data to the aggregation server commences. In cases where Software Inventory Logging does not receive an acknowledgement from the aggregation server that data forwarding was successfully received, the feature stores that data locally and attempts to forward both cached and current data during the next scheduled forward attempt. Once the cached and current data has been forwarded successfully, the feature deletes all historical data from the local server.

参数

-AsJob

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-CheckCollectionHistory

Indicates that this cmdlet checks whether the current data set varies from the previous collection results. If it does vary, this cmdlet publishes a full set of the data to the aggregation server at the target uniform resource identifier (URI). If the data set does not vary, this cmdlet publishes a small package of data that identifies the computer to the aggregation server.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-CimSession<CimSession[]>

在远程会话中或在远程计算机上运行 cmdlet。输入计算机名称或会话对象,例如 New-CimSessionGet-CimSession cmdlet 的输出。默认为本地计算机上的当前会话。

别名

Session

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-FileName<String>

Specifies the name of a file. This file is used by Software Inventory Logging to define the data sources. Because Software Inventory Logging has an inherent default value, you do not usually need to specify this parameter.

别名

是否为必需?

false

位置?

1

默认值

是否接受管道输入?

false

是否接受通配符?

false

-ThrottleLimit<Int32>

指定可建立的用于运行此 cmdlet 的并发操作的最大数目。如果省略了此参数或输入了值 0,那么 Windows PowerShell® 将基于正在计算机上运行的 CIM cmdlet 的数目,计算 cmdlet 的最佳中止值。中止值仅适用于当前 cmdlet,而不适用于会话或计算机。

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

-UseCacheOnly

Indicates that the server can publish stored data to the aggregation server without triggering a point in time collection of all Software Inventory Logging data.

别名

是否为必需?

false

位置?

named

默认值

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

输入

输入类型是指可通过管道传送给 cmdlet 的对象的类型。

输出

输出类型是 cmdlet 所发出对象的类型。

  • None

示例

Example 1: Forward Software Inventory Logging data

This command initiates a point in time data collection of Software Inventory Logging data and forwards the data to an aggregation server. To identify the aggregation server, specify the TargetUri parameter of the Set-SilLogging cmdlet.

PS C:\> Publish-SilData

相关主题

Get-SilData

Set-SilLogging

Start-SilLogging