< Back

Get-InstalledScript

Wed Jan 30, 2019 5:57 pm

NAME Get-InstalledScript



SYNOPSIS

Gets an installed script.





SYNTAX

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





DESCRIPTION

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





PARAMETERS

-MaximumVersion <Version>

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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-MinimumVersion <Version>

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.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String[]>

Specifies an array of names of scripts to get. Wildcards are accepted.



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-RequiredVersion <Version>

Specifies the exact version of a script to get.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

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



NOTES









Example 1: Get all installed scripts



PS C:\\>Get-InstalledScript

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

2.0 Script-WithDependencies1 Script local1 Description for the Script-WithDependencies1 script



This command gets all installed scripts.

Example 2: Get installed scripts by name



PS C:\\>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.



RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=822324

Install-Script

Uninstall-Script