external help file | Locale | Module Name | ms.custom | ms.date | online version | schema | title |
---|---|---|---|---|---|---|---|
PSModule-help.xml |
en-US |
PowerShellGet |
3.0.22-beta22 |
09/19/2023 |
2.0.0 |
Get-InstalledScript |
Gets an installed script.
Get-InstalledScript [[-Name] <String[]>] [-MinimumVersion <String>] [-RequiredVersion <String>]
[-MaximumVersion <String>] [-AllowPrerelease] [<CommonParameters>]
The Get-InstalledScript
cmdlet gets installed scripts for CurrentUser and AllUsers scopes.
This is a proxy cmdlet for the Get-InstalledPSResource
cmdlet in the
Microsoft.PowerShell.PSResourceGet. For more information, see
Get-InstalledPSResource.
Get-InstalledScript
This command gets all installed scripts.
Get-InstalledScript -Name "Required-Scri*"
Version Name Type Repository Description
------- ---- ---- ---------- -----------
2.5 Required-Script1 Script local1 Description for the Required-Script1 script
2.5 Required-Script2 Script local1 Description for the Required-Script2 script
2.5 Required-Script3 Script local1 Description for the Required-Script3 script
This command gets scripts where the name begins with Required-Scri
.
Includes in the results scripts marked as a prerelease.
The proxy cmdlet maps this parameter to the Prerelease parameter of Get-InstalledPSResource
.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The proxy cmdlet uses the value of this parameter to create a NuGet version search string for use
with the Version parameter of Get-InstalledPSResource
.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The proxy cmdlet uses the value of this parameter to create a NuGet version search string for use
with the Version parameter of Get-InstalledPSResource
.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies an array of names of scripts to get. Wildcards are accepted.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True
The proxy cmdlet uses the value of this parameter to create a NuGet version search string for use
with the Version parameter of Get-InstalledPSResource
.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.