Skip to content

Instantly share code, notes, and snippets.

@ferventcoder
Last active August 29, 2025 18:30
Show Gist options
  • Save ferventcoder/78fa6b6f4d6e2b12c89680cbc0daec78 to your computer and use it in GitHub Desktop.
Save ferventcoder/78fa6b6f4d6e2b12c89680cbc0daec78 to your computer and use it in GitHub Desktop.

Revisions

  1. ferventcoder revised this gist Apr 14, 2017. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions NonAdmin.ps1
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,11 @@
    $InstallDir='C:\ProgramData\chocoportable'
    $env:ChocolateyInstall="$InstallDir"

    # If your PowerShell Execution policy is restrictive, you may
    # not be able to get around that. Try setting your session to
    # Bypass.
    Set-ExecutionPolicy Bypass

    # All install options - offline, proxy, etc at
    # https://chocolatey.org/install
    iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  2. ferventcoder revised this gist Apr 14, 2017. 2 changed files with 6 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,9 @@
    :: down the directory if not the default
    SET INSTALLDIR=c:\ProgramData\chocoportable
    setx ChocolateyInstall %INSTALLDIR%

    :: All install options - offline, proxy, etc at
    :: https://chocolatey.org/install
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"

    CALL choco install puppet-agent.portable -y
    3 changes: 3 additions & 0 deletions NonAdmin.ps1
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,9 @@
    # down the directory if not the default
    $InstallDir='C:\ProgramData\chocoportable'
    $env:ChocolateyInstall="$InstallDir"

    # All install options - offline, proxy, etc at
    # https://chocolatey.org/install
    iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    # PowerShell 3+?
    #iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
  3. ferventcoder revised this gist Apr 14, 2017. 2 changed files with 6 additions and 2 deletions.
    5 changes: 4 additions & 1 deletion NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,17 @@
    :: Pick one of these two files (cmd or ps1)

    :: Set directory for installation - Chocolatey does not lock
    :: down the directory if not the default
    SET INSTALLDIR=c:\ProgramData\chocoportable
    setx ChocolateyInstall %INSTALLDIR%
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"

    CALL choco install puppet-agent.portable -y
    CALL choco install ruby.portable -y
    CALL choco install git.commandline -y

    :: pick an editor
    :: CALL choco install visualstudiocode.portable -y :: Not available yet
    ::CALL choco install visualstudiocode.portable -y :: Not available yet
    CALL choco install notepadplusplus.commandline -y
    ::CALL choco install nano -y
    ::CALL choco install vim-tux.portable
    3 changes: 2 additions & 1 deletion NonAdmin.ps1
    Original file line number Diff line number Diff line change
    @@ -3,14 +3,15 @@
    # Set directory for installation - Chocolatey does not lock
    # down the directory if not the default
    $InstallDir='C:\ProgramData\chocoportable'
    $env:ChocolateyInstall=$InstallDir
    $env:ChocolateyInstall="$InstallDir"
    iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    # PowerShell 3+?
    #iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

    choco install puppet-agent.portable -y
    choco install ruby.portable -y
    choco install git.commandline -y

    # pick an editor
    #choco install visualstudiocode.portable -y # not yet available
    choco install notepadplusplus.commandline -y
  4. ferventcoder revised this gist Apr 14, 2017. 2 changed files with 25 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    :: Pick one of these two files (cmd or ps1)

    SET INSTALLDIR=c:\ProgramData\chocoportable
    setx ChocolateyInstall %INSTALLDIR%
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"
    @@ -6,8 +8,10 @@ CALL choco install puppet-agent.portable -y
    CALL choco install ruby.portable -y
    CALL choco install git.commandline -y
    :: pick an editor
    :: CALL choco install visualstudiocode.portable -y :: Not available yet
    CALL choco install notepadplusplus.commandline -y
    ::CALL choco install nano -y
    ::CALL choco install vim-tux.portable

    :: What else can I install without admin rights?
    :: https://chocolatey.org/packages?q=id%3Aportable
    21 changes: 21 additions & 0 deletions NonAdmin.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    # Pick one of these two files (cmd or ps1)

    # Set directory for installation - Chocolatey does not lock
    # down the directory if not the default
    $InstallDir='C:\ProgramData\chocoportable'
    $env:ChocolateyInstall=$InstallDir
    iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    # PowerShell 3+?
    #iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex

    choco install puppet-agent.portable -y
    choco install ruby.portable -y
    choco install git.commandline -y
    # pick an editor
    #choco install visualstudiocode.portable -y # not yet available
    choco install notepadplusplus.commandline -y
    #choco install nano -y
    #choco install vim-tux.portable

    # What else can I install without admin rights?
    # https://chocolatey.org/packages?q=id%3Aportable
  5. ferventcoder revised this gist Apr 14, 2017. No changes.
  6. ferventcoder revised this gist Jan 16, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@ SET INSTALLDIR=c:\ProgramData\chocoportable
    setx ChocolateyInstall %INSTALLDIR%
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"

    choco install puppet-agent.portable -y
    choco install ruby.portable -y
    choco install git.commandline -y
    CALL choco install puppet-agent.portable -y
    CALL choco install ruby.portable -y
    CALL choco install git.commandline -y
    :: pick an editor
    choco install notepadplusplus.commandline -y
    ::choco install nano -y
    ::choco install vim-tux.portable
    CALL choco install notepadplusplus.commandline -y
    ::CALL choco install nano -y
    ::CALL choco install vim-tux.portable

    :: https://chocolatey.org/packages?q=id%3Aportable
  7. ferventcoder revised this gist Jan 10, 2017. 1 changed file with 12 additions and 5 deletions.
    17 changes: 12 additions & 5 deletions NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,13 @@
    setx ChocolateyInstall c:\programdata\chocoportable
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%ALLUSERSPROFILE%\chocoportable\bin"
    SET INSTALLDIR=c:\ProgramData\chocoportable
    setx ChocolateyInstall %INSTALLDIR%
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"

    choco install puppet-agent.portable
    choco install ruby.portable
    choco install git.commandline
    choco install puppet-agent.portable -y
    choco install ruby.portable -y
    choco install git.commandline -y
    :: pick an editor
    choco install notepadplusplus.commandline -y
    ::choco install nano -y
    ::choco install vim-tux.portable

    :: https://chocolatey.org/packages?q=id%3Aportable
  8. ferventcoder revised this gist Jan 10, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,5 @@ setx ChocolateyInstall c:\programdata\chocoportable
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%ALLUSERSPROFILE%\chocoportable\bin"

    choco install puppet-agent.portable
    choco install ruby.portable
    choco install ruby.portable
    choco install git.commandline
  9. ferventcoder created this gist Jan 10, 2017.
    5 changes: 5 additions & 0 deletions NonAdmin.cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    setx ChocolateyInstall c:\programdata\chocoportable
    @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%ALLUSERSPROFILE%\chocoportable\bin"

    choco install puppet-agent.portable
    choco install ruby.portable