Skip to content

Commit

Permalink
addressed OneGet feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt authored and juanpablojofre committed Jun 8, 2017
1 parent c852912 commit e9aab53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gallery/psget/get_psget_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ Exit

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

- Use below PowerShellGet cmdlet to save the modules to a local directory
- Use below PowerShellGet cmdlet from an elevated PowerShell session to save the modules to a local directory

```powershell
Save-Module PowerShellGet -Path C:\LocalFolder
Exit
```

- Re-open the PS Console then run the following commands
- Ensure that PowerShellGet and PackageManagment modules are not loaded in any other processes.
- Delete contents of `$env:ProgramFiles\WindowsPowerShell\Modules\PowerShellGet\` and `$env:ProgramFiles\WindowsPowerShell\Modules\PackageManagement\` folders.
- Re-open the PS Console with elevated permissions then run the following commands.

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

0 comments on commit e9aab53

Please sign in to comment.