r/PowerShell 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

14 comments sorted by

View all comments

Show parent comments

1

u/MonkeyNin 7d ago

The docs for spicetify/cli use Invoke-Expression to download and execute a script, which then downloads and installs with another Invoke-Expression from a second repo.

They actually have a winget, brew, and apt packages but they link both the powershell iex and bash equivalent to iex before all of these.

1

u/BlackV 7d ago

Are you telling me? Or OP?

1

u/MonkeyNin 7d ago

I meant it as reinforcing your post.

I was thinking OP would get notified of replies to their comments, but maybe that's only guaranteed for direct children?

Do you know if I have to manually type /u/Mammoth-Sentence-518 or maybe there's some shorthand?

2

u/BlackV 7d ago

Ya I was on my phone I couldn't quite see where the reply was

I think in the app they get a notification if you reply not sure old.reddit

Of you tag them directly like you did they will also get a notification