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.
구문
Parameter Set: TimeOfDay
Set-SilLogging -TimeOfDay <DateTime> [-CimSession <CimSession[]> ] [ <CommonParameters>]
Parameter Set: TargetUri
Set-SilLogging [-CertificateThumbprint <String> ] [-CimSession <CimSession[]> ] [-TargetUri <String> ] [-TimeOfDay <DateTime> ] [ <CommonParameters>]
자세한 설명
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.
매개 변수
-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.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-CimSession<CimSession[]>
원격 세션에서 또는 원격 컴퓨터에서 cmdlet을 실행합니다. New-CimSession 또는 Get-CimSession cmdlet의 출력과 같은 컴퓨터 이름이나 세션 개체를 입력합니다. 기본값은 로컬 컴퓨터의 현재 세션입니다.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
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.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
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.
별칭 |
없음 |
필수 여부 |
true |
위치 |
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: 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"