Get‑SqlDscRSPackage - dsccommunity/SqlServerDsc GitHub Wiki
Gets package information for SQL Server Reporting Services or Power BI Report Server.
Get-SqlDscRSPackage [-FilePath] <String> [-Force] [<CommonParameters>]
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.
Get-SqlDscRSPackage -FilePath 'E:\SQLServerReportingServices.exe'
Returns package information from the specified SQL Server Reporting Services executable file.
Get-SqlDscRSPackage -FilePath 'E:\PBIReportServer.exe'
Returns package information from the specified Power BI Report Server executable file.
Get-SqlDscRSPackage -FilePath 'E:\CustomReportServer.exe' -Force
Returns package information from the specified executable file without validating the product name.
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: FalseIf 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: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.