Skip to content

Commit e9aab53

Browse files
TylerLeonhardtjuanpablojofre
authored andcommitted
addressed OneGet feedback
1 parent c852912 commit e9aab53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gallery/psget/get_psget_module.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,16 @@ Exit
4646

4747
#### For systems running PowerShell 3 or PowerShell 4, that have installed the [PackageManagement MSI](http://go.microsoft.com/fwlink/?LinkID=746217&clcid=0x409)
4848

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
5050

5151
```powershell
5252
Save-Module PowerShellGet -Path C:\LocalFolder
5353
Exit
5454
```
5555

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.
5759

5860
```powershell
5961
Copy-Item "C:\LocalFolder\PowerShellGet\*" "$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\" -Recurse -Force

0 commit comments

Comments
 (0)