Skip to content

Latest commit

 

History

History
143 lines (102 loc) · 3.34 KB

File metadata and controls

143 lines (102 loc) · 3.34 KB
external help file PSModule-help.xml
Locale en-US
Module Name PowerShellGet
ms.date 10/04/2021
online version https://learn.microsoft.com/powershell/module/powershellget/get-installedscript?view=powershellget-1.x&WT.mc_id=ps-gethelp
schema 2.0.0
title Get-InstalledScript

Get-InstalledScript

SYNOPSIS

Gets an installed script.

SYNTAX

Get-InstalledScript [[-Name] <String[]>] [-MinimumVersion <Version>] [-RequiredVersion <Version>]
 [-MaximumVersion <Version>] [<CommonParameters>]

DESCRIPTION

The Get-InstalledScript cmdlet gets installed scripts for CurrentUser and AllUsers scopes.

EXAMPLES

Example 1: Get all installed scripts

Get-InstalledScript

This command gets all installed scripts.

Example 2: Get installed scripts by name

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.

PARAMETERS

-MaximumVersion

Specifies the maximum, or latest, version of a script to get. The MaximumVersion and RequiredVersion parameters are mutually exclusive; you cannot use both parameters in the same command.

Type: System.Version
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-MinimumVersion

Specifies the minimum version of a script to get. The MinimumVersion and RequiredVersion parameters are mutually exclusive; you cannot use both parameters in the same command.

Type: System.Version
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Name

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

-RequiredVersion

Specifies the exact version of a script to get.

Type: System.Version
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String[]

System.Version

OUTPUTS

System.Object

NOTES

RELATED LINKS

Install-Script

Uninstall-Script