So, I am making an "Assistant" that is completely command line based. I recently decided to move from hosting files on One-drive to GitHub. I had made tiny.cc links so it would be easy to change the final url without having to change the batch file itself.
But, as soon as I redirected my tiny.cc urls to my files on GitHub I got errors.
I was using powershell -Command Invoke-WebRequest http://tiny.cc/sanchitaiexdown -OutFile C:\Users\%USERNAME%\ai\exdown.exe
And it came with the error could not create SSL/TLS Secure Channel. After a bit of research I found that I had to use this command before it,
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
The issue with this was, it couldn't be run in batch (I want to stay in batch). So I tried BitsAdmin and it failed me as well.
So, is there a way I can make this work in BATCH. I am fine if an external exe is needed, but it can only be command line and no installation needed.
Thanks
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
and then theInvoke-WebRequest
command but you can run both of those via batch using a batch script just fine.