PowerShell Invoke-WebRequest Fails After a Windows Update

0
1
Asked By MellowPine47 On

After updating Windows, I tried installing Spicetify by running the installation command provided in its setup instructions: `iwr -useb | iex`. PowerShell returned an error saying, "The underlying connection was closed: The connection was closed unexpectedly." I'm not very familiar with PowerShell, so I'm looking for a straightforward explanation and a safe way to fix the installation.

1 Answer

Answered By QuietMaple8 On

The command being used matters here. The error is coming from PowerShell’s `Invoke-WebRequest`, and newer Windows or PowerShell changes may require the `-UseBasicParsing` parameter when downloading script content. Try adding that parameter to the web request, or check whether the installation instructions have been updated for the current Windows version.

MellowPine47 -

I used the install command shown in the setup instructions. I’m only using PowerShell because the guide says to paste the command there; I’m not trying to learn programming, just follow the installation steps.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

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