< Back

Get-PSFLicense

Sun Jan 19, 2020 6:39 pm

NAME Get-PSFLicense



SYNOPSIS

Returns registered licenses





SYNTAX

Get-PSFLicense [[-Filter] <String>] [-ProductType {Module | Script | Library | Application | Other}] [-LicenseType

{Free | Commercial | NoAttribution | NoModify}] [-Manufacturer <String>] [<CommonParameters>]





DESCRIPTION

Returns all matching licenses from the PSFramework internal license cache.





PARAMETERS

-Filter <String>

Default: "*"

Filters for the name of the product. Uses the -like operator.



Required? false

Position? 1

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-ProductType

Only licenses of products for any of the specified types are considered.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LicenseType

Only licenses of any matching type are returned.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Manufacturer <String>

Default: "*"

Only licenses for products of a matching manufacturer are returned. Uses the -like operator for comparisons.



Required? false

Position? named

Default value *

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

PSFramework.License.License





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-PSFLicense *Microsoft*



Returns all registered licenses for products with the string "Microsoft" in their name









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-PSFLicense -LicenseType Commercial -ProductType Library



Returns a list of all registered licenses for products that have commercial licenses and are libraries.











RELATED LINKS