Skip to content

Commit af8a928

Browse files
davidsmatlaksdwheeler
authored andcommitted
issue 4801 (#4805)
1 parent 27732ce commit af8a928

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

gallery/installing-psget.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,50 @@ title: Installing PowerShellGet
1313
- [Windows Management Framework (WMF) 5.0](https://www.microsoft.com/download/details.aspx?id=50395) or newer
1414
- [PowerShell 6](https://github.com/PowerShell/PowerShell/releases)
1515

16-
## Get PowerShellGet module for PowerShell versions 3.0 and 4.0
17-
18-
- [PackageManagement MSI](https://www.microsoft.com/download/details.aspx?id=51451)
19-
2016
## Get the latest version from PowerShell Gallery
2117

22-
- Before updating PowerShellGet, you should always install the latest Nuget provider. To do that,
23-
run the following in an elevated PowerShell session.
18+
Before updating **PowerShellGet**, you should always install the latest **NuGet** provider. From an
19+
elevated PowerShell session, run the following command.
2420

25-
```powershell
26-
Install-PackageProvider Nuget -Force
27-
Exit
28-
```
21+
```powershell
22+
Install-PackageProvider -Name NuGet -Force
23+
Exit
24+
```
2925

3026
### For systems with PowerShell 5.0 (or newer) you can install the latest PowerShellGet
3127

32-
- To do this on Windows 10, Windows Server 2016, any system with WMF 5.0 or 5.1 installed, or any system with PowerShell 6, run the following commands from an elevated PowerShell session.
28+
To install PowerShellGet on Windows 10, Windows Server 2016, any system with WMF 5.0 or 5.1
29+
installed, or any system with PowerShell 6, run the following commands from an elevated PowerShell
30+
session.
3331

34-
```powershell
35-
Install-Module -Name PowerShellGet -Force
36-
Exit
37-
```
32+
```powershell
33+
Install-Module -Name PowerShellGet -Force
34+
Exit
35+
```
3836

39-
- Use `Update-Module` to get newer versions.
37+
Use `Update-Module` to get newer versions.
4038

41-
```powershell
42-
Update-Module -Name PowerShellGet
43-
Exit
44-
```
39+
```powershell
40+
Update-Module -Name PowerShellGet
41+
Exit
42+
```
4543

46-
### For systems running PowerShell 3 or PowerShell 4, that have installed the [PackageManagement MSI](https://www.microsoft.com/download/details.aspx?id=51451)
44+
### For systems running PowerShell 3 or PowerShell 4, that have installed the PackageManagement Preview
4745

48-
- Use below PowerShellGet cmdlet from an elevated PowerShell session to save the modules to a local directory
46+
1. From an elevated PowerShell session, use `Save-Module` to save the modules to a local directory.
4947

50-
```powershell
51-
Save-Module PowerShellGet -Path C:\LocalFolder
52-
Exit
53-
```
48+
```powershell
49+
Save-Module -Name PowerShellGet -Path C:\LocalFolder
50+
Exit
51+
```
5452

55-
- Ensure that PowerShellGet and PackageManagement modules are not loaded in any other processes.
56-
- Delete contents of `$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\` and `$env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement\` folders.
57-
- Re-open the PS Console with elevated permissions then run the following commands.
53+
1. Ensure that the **PowerShellGet** and **PackageManagement** modules aren't loaded in any other
54+
processes.
55+
1. Delete the contents of the folders: `$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\`
56+
and `$env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement\`.
57+
1. Reopen the PowerShell console with elevated permissions and run the following commands.
5858

59-
```powershell
60-
Copy-Item "C:\LocalFolder\PowerShellGet\*" "$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\" -Recurse -Force
61-
Copy-Item "C:\LocalFolder\PackageManagement\*" "$env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement\" -Recurse -Force
62-
```
59+
```powershell
60+
Copy-Item "C:\LocalFolder\PowerShellGet\*" "$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\" -Recurse -Force
61+
Copy-Item "C:\LocalFolder\PackageManagement\*" "$env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement\" -Recurse -Force
62+
```

0 commit comments

Comments
 (0)