Publish-SilReport

Publish-SilReport

Generates a report in Software Inventory Logging Aggregator.

구문

Parameter Set: All
Publish-SilReport [-All] [-DBServerCredential <PSCredential> ] [-DBServerName <String> ] [-Force] [-OpenReport] [-ReportPath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByMonth
Publish-SilReport [-ByMonth <DateTime> ] [-DBServerCredential <PSCredential> ] [-DBServerName <String> ] [-Force] [-OpenReport] [-ReportPath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByYear
Publish-SilReport [-ByYear <DateTime> ] [-DBServerCredential <PSCredential> ] [-DBServerName <String> ] [-Force] [-OpenReport] [-ReportPath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: None
Publish-SilReport [-DBServerCredential <PSCredential> ] [-DBServerName <String> ] [-Force] [-OpenReport] [-ReportPath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Publish-SilReport cmdlet generates a Software Inventory Logging Aggregator report. You can generate a report for a particular month, for a particular year, or one that includes all data. By default, this cmdlet generates a report from the start of the month, two months prior to the current date, but does not exceed three months of data. Specify parameter values to modify the report. If necessary, provide the database server name and credentials that this cmdlet uses to connect to the database server.

매개 변수

-All

Indicates that this cmdlet generates a report that contains all available data.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ByMonth<DateTime>

Specifies a month for which this cmdlet generates a report. For the current month, the report starts at the start of the month and includes data up to the current date.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ByYear<DateTime>

Specifies a year for which this cmdlet generates a report. For the current year, the report starts at the start of the year and includes data up to the current date.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-DBServerCredential<PSCredential>

Specifies the credentials to connect to the SQL Server Analysis Services (SSAS) database server for the report. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential. You may also need to open a port on the firewall of the SSAS database server.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-DBServerName<String>

Specifies the SSAS database server for the report.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Force

사용자에게 확인 메시지를 표시하지 않고 명령을 강제 실행합니다.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-OpenReport

Indicates that this cmdlet opens the report that it generates in a new Microsoft Excel application window.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-ReportPath<String>

Specifies the folder path where this cmdlet saves the report that it generates.

별칭

none

필수 여부

false

위치

named

기본값

none

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지를 표시합니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행되는 경우 발생할 결과를 보여 줍니다. cmdlet은 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 허용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 TechNet의 about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216)

입력

입력 형식은 cmdlet으로 파이프할 수 있는 개체의 형식입니다.

출력

출력 형식은 cmdlet 실행 시 출력되는 개체의 형식입니다.

Example 1: Generate a default report

This command generates a Software Inventory Logging Aggregator report. This default report contains data for the previous two months and the current month up to the local time. This command generates a report and saves it in your Documents folder.

PS C:\> Publish-SilReport 

Example 2: Generate a monthly report

This command generates a report for the month of October 2014.

PS C:\> Publish-SilReport -ByMonth "10/03/2014" 

Example 3: Generate a yearly report

This command generates a report for the year 2012.

PS C:\> Publish-SilReport -ByYear "1/1/2012" 

Example 4: Generate a complete report

This command generates a report that contains all data.

PS C:\> Publish-SilReport -All 

Example 5: Specify a server and credentials

The first command creates a credential by using the Get-Credential cmdlet. That cmdlet prompts you for user name and password. The command stores those credentials in the $Credentials variable. For more information, type Get-Help Get-Credential.

This command generates a report by providing the name of the database server. The cmdlet uses the credentials stored in $Credential to connect to SSAS on a remote server. You may need to open the correct firewall port on the target server to accept this report request.

PS C:\> $Credential = Get-Credential
PS C:\> Publish-SilReport -DBServerName "SILContoso.com" -DBServerCredential $Credential 

Example 6: Generate and open a report

This command generates a report, and then opens it in a new Excel application window.

PS C:\> Publish-SilReport -OpenReport 

관련 항목

Software Inventory Logging Cmdlets in Windows PowerShell