PowerShell Invoke-WebRequest Fails After a Windows Update

August 11, 2026 2 answers
Asked by _lane3start
I recently updated Windows and then tried installing Spicetify using the official PowerShell command: iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex. Instead, PowerShell returned "The underlying connection was closed: The connection was closed unexpectedly" from Invoke-WebRequest. I'm not very familiar with PowerShell and was only using it because the installation instructions told me to paste the command there. Does anyone know what changed or how to fix this?

Answers

_ant trail
The exact command matters here, but the command you used is the installation command provided by the project, so using PowerShell isnโ€™t inherently unusual. The error points to PowerShell failing while connecting to the scriptโ€™s web address rather than necessarily indicating a problem with the app itself.

_lane3start: Thatโ€™s the command I used from the installation guide. Iโ€™m not trying to learn PowerShellโ€”Iโ€™m just following the setup steps to install the app.

Reply to this answer
skosh
Windows PowerShell 5.1 may now require the -UseBasicParsing parameter for Invoke-WebRequest in some situations. Try adding it to the command, for example: iwr -UseBasicParsing -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex. The installation instructions may need to be updated if they donโ€™t include that option.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions