Set-SilLogging
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.
Syntaxe
Parameter Set: TimeOfDay
Set-SilLogging -TimeOfDay <DateTime> [-CimSession <CimSession[]> ] [ <CommonParameters>]
Parameter Set: TargetUri
Set-SilLogging [-CertificateThumbprint <String> ] [-CimSession <CimSession[]> ] [-TargetUri <String> ] [-TimeOfDay <DateTime> ] [ <CommonParameters>]
Description détaillée
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.
Paramètres
-CertificateThumbprint<String>
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.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-CimSession<CimSession[]>
Exécute l’applet de commande dans une session à distance ou sur un ordinateur distant. Entrez un nom d’ordinateur ou un objet de session, comme la sortie d’une applet de commande New-CimSession ou Get-CimSession. La valeur par défaut est la session active sur l’ordinateur local.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-TargetUri<String>
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.
Alias |
none |
Obligatoire ? |
false |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-TimeOfDay<DateTime>
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.
Alias |
none |
Obligatoire ? |
true |
Position ? |
named |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.
Sorties
Le type de sortie est le type des objets émis par l’applet de commande.
- None.
Exemples
Example 1: Specify an aggregation server
This command specifies an aggregation server for Software Inventory Logging for the current computer.
PS C:\> Set-SilLogging -TargetUri "https://log03.hosts.contoso.com"
Example 2: Specify a date and time for logging to start
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.
PS C:\> Set-SilLogging -TimeOfDay "01/01/2013 5:00:00AM"