Skip to content

Get-SqlDscRSPackage: New command proposal #2082

@johlju

Description

@johlju

Command proposal

A command that return package information from an installed package using Get-Package or Get-Item to get file executable information for a not yet installed package.

Proposed parameters

Two parameters sets, Package and FilePath

Parameter Set Parameter Mandatory Data type Description Default value Allowed values
PackageSet Package Yes String Specifies if either the Reporting Servives or Power BI Report Server package should be retrieved None SSRS, PBIRS
FilePathSet FilePath Yes String Specifies the executable None None

Special considerations or limitations

Might use this example code to get file executable information:

<#
    .SYNOPSIS
        Gets the product version of a executable.

    .PARAMETER Path
        The path to the executable to return product version for.

    .OUTPUTS
        Returns the product version as [System.Version] type.
#>
function Get-FileProductVersion
{
    [CmdletBinding()]
    [OutputType([System.Version])]
    param
    (
        [Parameter(Mandatory = $true)]
        [System.String]
        $Path
    )

    return [System.Version] (Get-Item -Path $Path).VersionInfo.ProductVersion
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions