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
Copy file name to clipboardExpand all lines: gallery/psget/get_psget_module.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,16 @@ Exit
46
46
47
47
#### For systems running PowerShell 3 or PowerShell 4, that have installed the [PackageManagement MSI](http://go.microsoft.com/fwlink/?LinkID=746217&clcid=0x409)
48
48
49
-
- Use below PowerShellGet cmdlet to save the modules to a local directory
49
+
- Use below PowerShellGet cmdlet from an elevated PowerShell session to save the modules to a local directory
50
50
51
51
```powershell
52
52
Save-Module PowerShellGet -Path C:\LocalFolder
53
53
Exit
54
54
```
55
55
56
-
- Re-open the PS Console then run the following commands
56
+
- Ensure that PowerShellGet and PackageManagment modules are not loaded in any other processes.
57
+
- Delete contents of `$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\` and `$env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement\` folders.
58
+
- Re-open the PS Console with elevated permissions then run the following commands.
0 commit comments