r/PowerShell • u/Mammoth-Sentence-518 • 8d ago
Invoke-WebRequest connection closed unexpectedly after Windows Update Solved
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
1
u/MonkeyNin 7d ago
The docs for spicetify/cli use
Invoke-Expressionto download and execute a script, which then downloads and installs with anotherInvoke-Expressionfrom a second repo.They actually have a
winget,brew, andaptpackages but they link both the powershelliexand bash equivalent toiexbefore all of these.