The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

An easier to understand first time Scoop install command

Posted by jpluimers on 2026/05/13

The Scoop repository lists this first time Scoop install command at [Wayback/Archive] ScoopInstaller/Scoop: A command-line installer for Windows. – installation:

Run the following command from a non-admin PowerShell to install scoop to its default location C:Users<YOUR USERNAME>scoop.

iwr -useb get.scoop.sh | iex

[Wayback/Archive] ScoopInstaller/Install: 📥 Next-generation Scoop (un)installer is very similar:

Run this command from a non-admin PowerShell to install scoop with default configuration, scoop will be install to C:Users<YOUR USERNAME>scoop.

irm get.scoop.sh | iex
# You can use proxies if you have network trouble in accessing GitHub, e.g.
irm get.scoop.sh -Proxy 'http://<ip:port>' | iex

The Scoop homepage at [Wayback/Archive] Scoop.sh is not much better:

Open a PowerShell terminal (version 5.1 or later) and run:

> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
> irm get.scoop.sh | iex

This prompted me to look at the evolution of the Chocolatey first time install instructions that roughly evolved as follows:

    1. [Wayback/Archive] 2016-11:
      @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%chocolateybin"
    2. [Wayback/Archive] 2017-08 which adds the full path to the default PowerShell path and -InputFormat None:
      @"%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"

      Note that -InputFormat None is documented nowhere:

      I could not find -InputFormat None in older PowerShell documentation on-line at the time of writing, so maybe it was an option used in PowerShell versions 2.0 or 1.0.

    3. [Wayback/Archive] 2017-12 (which starts at PowerShell instead of cmd.exe):
      Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
    4. [Wayback/Archive] 2020-02 (which adds [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;, see my blog post Chocolatey and TLS since early 2020):
      Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

      See also

Based on that, I came up with this Scoop installation command:

"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh'))" && SET "PATH=%PATH%;%USERPROFILE%\scoop\shims"

Related links:

Queries:

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.