You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Get-InstalledPSResource cmdlet combines the Get-InstalledModule, Get-InstalledScript cmdlets from V2. It performs a search within module or script installation paths based on the -Name parameter argument. It returns PSResourceInfo objects which describes each resource item found. Other parameters allow the returned results to be filtered by version and path.
20
+
The Get-PSResource cmdlet combines the Get-InstalledModule, Get-InstalledScript cmdlets from V2. It performs a search within module or script installation paths based on the -Name parameter argument. It returns PSResourceInfo objects which describes each resource item found. Other parameters allow the returned results to be filtered by version and path.
21
21
22
22
## EXAMPLES
23
23
24
24
### Example 1
25
25
```powershell
26
-
PS C:\> Get-InstalledPSResource Az
26
+
PS C:\> Get-PSResource Az
27
27
```
28
28
29
29
This will return versions of the Az module installed via PowerShellGet.
30
30
31
31
### Example 2
32
32
```powershell
33
-
PS C:\> Get-InstalledPSResource Az -version "1.0.0"
33
+
PS C:\> Get-PSResource Az -version "1.0.0"
34
34
```
35
35
36
36
This will return version 1.0.0 of the Az module.
37
37
38
38
### Example 3
39
39
```powershell
40
-
PS C:\> Get-InstalledPSResource Az -version "(1.0.0, 3.0.0)"
40
+
PS C:\> Get-PSResource Az -version "(1.0.0, 3.0.0)"
41
41
```
42
42
43
43
This will return all versions of the Az module within the specified range.
44
44
45
45
### Example 4
46
46
```powershell
47
-
PS C:\> Get-InstalledPSResource Az -Path .
47
+
PS C:\> Get-PSResource Az -Path .
48
48
```
49
49
50
50
This will return all versions of the Az module that have been installed in the current directory.
51
51
52
52
### Example 5
53
53
```powershell
54
-
PS C:\> Get-InstalledPSResource
54
+
PS C:\> Get-PSResource
55
55
```
56
56
57
57
This will return all versions and scripts installed on the machine.
0 commit comments