Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

24,259

Downloads

17,409

Downloads of v 1.0.4.407

12/29/2015

Last update

PsGet Utils

1.0.4.407

Package test results have failed.

This package was approved by moderator ferventcoder on 12/29/2015.

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

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Mike Chaliy

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.310 3460 Friday, July 25, 2014  
PsGet Utils 1.0.4.297 388 Friday, June 27, 2014  
PsGet Utils 1.0.4.292 435 Wednesday, May 21, 2014  
PsGet Utils 1.0.4.283 352 Thursday, May 1, 2014  
PsGet Utils 1.0.4.281 411 Monday, April 7, 2014  
PsGet Utils 1.0.4.279 380 Monday, March 10, 2014  
PsGet Utils 1.0.4.277 273 Thursday, February 20, 2014  
PsGet 1.0.3 726 Thursday, May 30, 2013  
PsGet 1.0.0 425 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.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok