#I recently reset windows and now am trying to run this bat file and its not running.

1 messages · Page 1 of 1 (latest)

rigid iris
#

Initially I was thinking it was GitHub using a different TLS version than 1.2 since your BAT file launches powershell and sets the security protocol to exclusively use Tls12 instead of -bor ‘ing a few protocols together to support at least Tls11 as well, but a quick test of the web server shows it’s using Tls12 anyway.

I’m on my mobile but I’ll take a closer look later. Here’s the BAT file contents so it’s easier for someone else to help in the meantime.


@echo off

%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "&{[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12}; """"& { $((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/amd64fox/SpotX/main/Install.ps1').Content)} -new_theme """" | Invoke-Expression"

pause
exit /b

swift cloak
#

alr

swift cloak
weary condor
#

We need to stop telling people to set [Net.ServicePointManager]::SecurityProtocol ... the chocolatey repo even has a version that's so old it hardcodes a list where all the protocols on the list are deprecated now. 😐

#

But if you do have to write such a script, set a minimum only:

[Net.ServicePointManager]::SecurityProtocol =
    [Net.SecurityProtocolType].GetEnumValues() -ge "TLS12"
#

I can't see a reason it couldn't connect to that web, unless you're not online yet

swift cloak
#

oh so i just checked something

#

our country is blocking the website

weary condor
#

Blocking github?

#

Oh, maybe not, those seem to redirect to that one.