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:
-
- [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" - [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 Noneis documented nowhere:- 3.0 [Wayback/Archive] about_PowerShell_exe | Microsoft Learn
- 4.0: [Wayback/Archive] about_PowerShell_exe | Microsoft Learn
- 5.0: [Wayback/Archive] about_PowerShell_exe | Microsoft Learn
- 5.1-7.4: [Wayback/Archive] about PowerShell exe – PowerShell | Microsoft Learn
I could not find
-InputFormat Nonein 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. - [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')) - [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
- .NET Framework 4.8 [Wayback/Archive]
ServicePointManager.SecurityProtocolProperty (System.Net) | Microsoft Learn - .NET Framework 4.8 [Wayback/Archive]
SecurityProtocolTypeEnum (System.Net) | Microsoft Learn
Tls123072Specifies the Transport Layer Security (TLS) 1.2 security protocol. The TLS 1.2 protocol is defined in IETF RFC 5246. On Windows systems, this value is supported starting with Windows 7. - .NET Framework 4.5 [Wayback/Archive]
SecurityProtocolTypeEnum (System.Net) | Microsoft Learn introduced theTls12element with value3072. - .NET Framework 4.0 [Wayback/Archive] SecurityProtocolType Enum (System.Net) | Microsoft Learn lacked that property
- [Wayback/Archive] Installing chocolatey in windows 7 – Super User
But I am getting the following error message as below Exception setting “
securityProtocol“: “cannot convert value “3312” to type “System.Net.SecurityProtocolTypeValidenumeration values. Specify one of the following enumeration values and try again. The Possible enumerations are “Sel3,Tls“This can be important when supporting EOL versions of Windows 7 RTM and Windows Server 2008 R2 RTM and older
- .NET Framework 4.8 [Wayback/Archive]
- [Wayback/Archive] 2016-11:
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:
- [Wayback/Archive] ScoopInstaller/Scoop: A command-line installer for Windows.
- [Wayback/Archive] Chocolatey and Winget Comparison · ScoopInstaller/Scoop Wiki
- [Wayback/Archive] https://get.scoop.sh/ which redirects to teh actual installer at
https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1 - [Wayback/Archive]
Invoke-RestMethod(Microsoft.PowerShell.Utility) – PowerShell | Microsoft Learn (I’m not sure as of which .NET Framework version this was available, but I am sure thatWebClient.DownloadStringis) - [Wayback/Archive]
Invoke-Expression(Microsoft.PowerShell.Utility) – PowerShell | Microsoft Learn - [Wayback/Archive] any2mp4.bat/install-scoop.bat at main · RellikJaeger/any2mp4.bat
powershell -c "Set-ExecutionPolicy RemoteSign -Scope CurrentUser; iwr -useb get.scoop.sh | iex"
Queries:
- [Wayback/Archive] powershell irm – Google Search
- [Wayback/Archive] powershell iex – Google Search
- [Wayback/Archive] “install-scoop.bat” – Google Search
- [Wayback/Archive] site:learn.microsoft.com “-InputFormat None” – Google Search
–jeroen






Leave a comment