Publish-SilData

Initiates a point in time collection of all Software Inventory Logging data and forwards it, along with any accumulated historical data, to the aggregation server.

Syntax

Publish-SilData
       [[-FileName] <String>]
       [-CheckCollectionHistory]
       [-CimSession <CimSession[]>]
       [-ThrottleLimit <Int32>]
       [-AsJob]
       [<CommonParameters>]
Publish-SilData
       [-UseCacheOnly]
       [-CimSession <CimSession[]>]
       [-ThrottleLimit <Int32>]
       [-AsJob]
       [<CommonParameters>]

Description

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 Software Inventory Logging was started by an administrator, daily collection and forwarding of the 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 successful, the service stores that data locally and attempts to forward both the previous and current data the next day. Administrators can also use this cmdlet to manually forward all historical Software Inventory Logging data that was accumulated locally, if that data was not been successfully forwarded to the aggregation server for a period of one or more days. After Software Inventory Logging successfully forwards the data, it deletes all historical data from the client server.

Use the Start-SilLogging cmdlet to start Software Inventory Logging.

Initiating Software Inventory Logging data collection uses server resources. To reduce resource consumption, filter the data by using the UseCacheOnly parameter to specify that the cmdlet only forward the cached data and not initiate a point in time data collection.

Use the Set-SilLogging cmdlet with the TargetUri parameter to specify an aggregation server for daily collection.

Examples

Example 1: Forward Software Inventory Logging data

PS C:\> Publish-SilData

This command initiates a point in time data collection of Software Inventory Logging data and forwards the data to an aggregation server.

Example 2: Publish existing stored data without first triggering a collection

PS C:\>Publish-SilData -UseCacheOnly

This command demonstrates the usage of UseCacheOnly mode. The UseCacheOnly parameter indicates that the server can push or publish stored data to the aggregation server without triggering a point in time collection of all Software Inventory Logging data.

Optional Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell® background jobs, see about_Jobs.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CheckCollectionHistory

Performs a comparison of the current data set to the last data set that was collected. If there are no differences, the contents of Get-SilComputerIdentity are sent.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FileName

Specifies a file name. This configuration file contains the data sources.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseCacheOnly

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

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

None