Skip to content

Instantly share code, notes, and snippets.

@himanshuxd
Created December 11, 2019 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himanshuxd/d55bbf2eb5c1fe504bef78de29b7cd62 to your computer and use it in GitHub Desktop.
Save himanshuxd/d55bbf2eb5c1fe504bef78de29b7cd62 to your computer and use it in GitHub Desktop.
Single line Chocolately (Windows package manager install) use elevated admin cmd
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment