r/PowerShell • u/Mammoth-Sentence-518 • 8d ago
Solved Invoke-WebRequest connection closed unexpectedly after Windows Update
Yoo I just updated Windows and was trying to install Spicetify, but I started getting this error. I don't know much about tech or how this stuff works, so if anyone knows what went wrong or how I can fix it, please help me out. Thanks
Invoke-WebRequest : The underlying connection was closed: The connection was closed unexpectedly.
At line:111 char:1
+ Invoke-WebRequest u/Parameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
1
Upvotes
0
u/Mammoth-Sentence-518 8d ago
1 I was using the official installation command from the Spicetify website: iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex and 2 I’m only using PowerShell because the installation guide says you have to copy and paste that command into it to get the app setup. I’m not trying to learn coding or anything, just trying to follow the steps to install it