Get‑SqlDscRSPackage - dsccommunity/SqlServerDsc GitHub Wiki

SYNOPSIS

Gets package information for SQL Server Reporting Services or Power BI Report Server.

SYNTAX

Get-SqlDscRSPackage [-FilePath] <String> [-Force] [<CommonParameters>]

DESCRIPTION

Gets package information for a SQL Server Reporting Services or Power BI Report Server executable file. The command returns file version information including product name, product version, file version, and other version-related metadata.

EXAMPLES

EXAMPLE 1

Get-SqlDscRSPackage -FilePath 'E:\SQLServerReportingServices.exe'

Returns package information from the specified SQL Server Reporting Services executable file.

EXAMPLE 2

Get-SqlDscRSPackage -FilePath 'E:\PBIReportServer.exe'

Returns package information from the specified Power BI Report Server executable file.

EXAMPLE 3

Get-SqlDscRSPackage -FilePath 'E:\CustomReportServer.exe' -Force

Returns package information from the specified executable file without validating the product name.

PARAMETERS

-FilePath

Specifies the path to the executable file to return version information for. The file must have a product name matching either 'Microsoft SQL Server Reporting Services' or 'Microsoft Power BI Report Server'.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Force

If specified, the ProductName validation is skipped. This allows retrieving version information for executables with different product names.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None.

OUTPUTS

System.Diagnostics.FileVersionInfo

Returns the file version information for the package.

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️