Editar

Compartilhar via


Set-SilLogging

Applies configuration settings for Software Inventory Logging. Windows Server 2012 R2 with KB3000850 applied. For more information, see https://support.microsoft.com/kb/3000850.

Syntax

Set-SilLogging
   -TimeOfDay <DateTime>
   [-CimSession <CimSession[]>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-SilLogging
   [-TimeOfDay <DateTime>]
   [-TargetUri <String>]
   [-CertificateThumbprint <String>]
   [-CimSession <CimSession[]>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-SilLogging cmdlet applies configuration settings for Software Inventory Logging. If logging is started, Software Inventory Logging collects data hourly from Software Inventory Logging data sources, and then forwards this data over the network to an aggregation server. This cmdlet sets the uniform resource identifier (URI) of the aggregation server, the certificate thumbprint needed for secure authentication, and optionally the date and time that the hourly collection is scheduled to start.

Examples

Example 1: Specify an aggregation server

PS C:\> Set-SilLogging -TargetUri "https://log03.hosts.contoso.com"

This command specifies an aggregation server for Software Inventory Logging for the current computer.

Example 2: Specify a date and time for logging to start

PS C:\> Set-SilLogging -TimeOfDay "01/01/2013 5:00:00AM"

This command specifies the date and time that the computer starts forwarding Software Inventory Logging data. Note that when you specify a date in the future, Software Inventory Logging does not start logging until that date and time. If you specify a date in the past, only the time specified is relevant to the configuration setting.

Parameters

-CertificateThumbprint

Specifies a certificate thumbprint as a string. Software Inventory Logging encrypts logging data sent to the aggregation server by using this thumbprint. If you do not specify a value for this parameter, Software Inventory Logging does not forward data.

Type:String
Position:Named
Default value:None
Required:False
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 https://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSession https://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-TargetUri

Specifies the URI, as an HTTPS address, of an aggregation server. If you do not specify a value for this parameter, Software Inventory Logging does not forward data.

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

-TimeOfDay

Specifies the time of day, as a DateTime object, to schedule Software Inventory Logging to forward data. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type Get-Help Get-Date. If you do not change the default value, Software Inventory Logging starts at the next 3:00:00 AM local system time.

Type:DateTime
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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

Outputs

None.