Created
November 23, 2011 20:44
-
-
Save jonforums/1389848 to your computer and use it in GitHub Desktop.
Playing with chocolatey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. set PowerShell's execution policies | |
## as admin | |
PS C:\Users\Jon> set-executionpolicy RemoteSigned -scope LocalMachine | |
## as normal user | |
PS C:\Users\Jon> set-executionpolicy Unrestricted -scope CurrentUser | |
PS C:\Users\Jon> get-executionpolicy -list | |
Scope ExecutionPolicy | |
----- --------------- | |
MachinePolicy Undefined | |
UserPolicy Undefined | |
Process Undefined | |
CurrentUser Unrestricted | |
LocalMachine RemoteSigned | |
2. set (and check) chocolatey install directory via env var | |
PS C:\Users\Jon> ni -path env:ChocolateyInstall -value C:\Apps\Chocolatey | |
Name Value | |
---- ----- | |
ChocolateyInstall C:\Apps\Chocolatey | |
PS C:\Users\Jon> ls env:ChocolateyInstall | |
Name Value | |
---- ----- | |
ChocolateyInstall C:\Apps\Chocolatey | |
3. install chocolately | |
PS C:\Users\Jon> iex ((new-object net.webclient).DownloadString("http://bit.ly/psChocInstall")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment