Skip to content

Get-SqlDscRSPackage: New command proposal #2082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
johlju opened this issue Mar 14, 2025 · 0 comments
Open

Get-SqlDscRSPackage: New command proposal #2082

johlju opened this issue Mar 14, 2025 · 0 comments
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Member

johlju commented Mar 14, 2025

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
}
@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

1 participant