
25,715
Downloads
18,617
Downloads of v 1.0.4.407
12/29/2015
Last update
Set of commands to install PowerShell modules from central directory, local file or from the web.
Features:
1.Install modules from central directory
2.Install modules from web or local file
3.Install modules to user profile or for all users ( elevated access required )
4.Install multifile modules from ZIP
5.Import module after install
6.Alter you profle to load module every time that PowerShell starts
7.Execute Install.ps1 if found in module folder
8.Tab completion for modules, ismo Ps
To install PsGet Utils, run the following command from the command line or from PowerShell:
C:\> choco install psget
To upgrade PsGet Utils, run the following command from the command line or from PowerShell:
C:\> choco upgrade psget
Files
Hide- tools\chocolateyInstall.ps1
Show
function Add-PathToEnvironmentVariable { param( [Parameter(Mandatory=$true)] [string]$variableName, [ValidateSet("Machine", "User")] [string]$Scope = "User", [Parameter(Mandatory=$true)] [string]$pathToAdd) $existingValue = [Environment]::GetEnvironmentVariable($variableName, $Scope) Write-Verbose "The existing value of the '$Scope' environment variable '$variableName' is '$existingValue'" $pathToAdd = [io.path]::GetFullPath(($pathToAdd.Trim() + '\')) Write-Verbose "Path: $pathToAdd" $paths = $existingValue.ToLower().Split(";") $doesPathAlreadyExist = $false foreach($path in $paths) { $path = [io.path]::GetFullPath(($path.Trim() + '\')) Write-Verbose @" Compare paths: Existing path: $path New path: $pathToAdd "@ if($path -like $pathToAdd) { $doesPathAlreadyExist = $true; Write-Warning "The path '$pathToAdd' is already in the environment variable '$variableName'. The path will not be added." } } if(-not $doesPathAlreadyExist) { $existingValue += ";$pathToAdd" [Environment]::SetEnvironmentVariable($variableName,$existingValue, $Scope) sc env:\$variableName ([Environment]::GetEnvironmentVariable($variableName, $Scope) + ";" + [Environment]::GetEnvironmentVariable($variableName, "User")) $newValue = gc env:\$variableName Write-Verbose "The new value of the '$Scope' environment variable '$variableName' is '$newValue'" } } $PsGetDestinationModulePath = "$env:ProgramFiles\WindowsPowerShell\Modules" Add-PathToEnvironmentVariable -variableName "PSModulePath" -scope "Machine" -pathToAdd $PsGetDestinationModulePath (new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
Virus Scan Results
- PsGet.1.0.4.407.nupkg (0e3bebe6c1aa) - ## / 56 - Log in or click on link to see number of positives
Dependencies
This package has no dependencies.
Package Maintainer(s)
Software Author(s)
Tags
Release Notes
Updated install location to match Microsoft pathing of C:\Program Files\WindowsPowerShell\Modules\
Version History
Version | Downloads | Last updated | Status |
---|---|---|---|
PsGet Utils 1.0.4.407 | 18617 | Tuesday, December 29, 2015 | approved |
PsGet Utils 1.0.4.310 | 3489 | Friday, July 25, 2014 | |
PsGet Utils 1.0.4.297 | 415 | Friday, June 27, 2014 | |
PsGet Utils 1.0.4.292 | 462 | Wednesday, May 21, 2014 | |
PsGet Utils 1.0.4.283 | 381 | Thursday, May 1, 2014 | |
PsGet Utils 1.0.4.281 | 431 | Monday, April 7, 2014 | |
PsGet Utils 1.0.4.279 | 422 | Monday, March 10, 2014 | |
PsGet Utils 1.0.4.277 | 292 | Thursday, February 20, 2014 | |
PsGet 1.0.3 | 760 | Thursday, May 30, 2013 | |
PsGet 1.0.0 | 446 | Wednesday, May 29, 2013 |
Discussion for the PsGet Utils Package
Ground rules:
- This discussion is only about PsGet Utils and the PsGet Utils package. If you have feedback for Chocolatey, please contact the google group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or PsGet Utils, or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.