View Single Post
  #6  
Old 02-06-2021, 04:49 AM
Vanderdoody
Fire Beetle
 
Join Date: Jan 2021
Posts: 6
Default

I made a little bit of progress tonight. I found out the .bat was having that error because Windows uses the default TLS version of 1.0, but 1.2 is most commonly used. So I had to add some stuff to the .bat by editing it in notepad. I added " [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; " right in front of "Invoke-RestMethod" to force it to use TLS 1.2 and it seems to have gotten the .bat file to work up until after it downloads the .pl and json file.

Now the .pl is giving me all sorts of grief. I side stepped the issue of the connection by editing the script to skip the connection check and set the variable to "1". But it's really unpredictable after that. I keep getting windows pop ups saying, "This app can't run on your PC > To find a version for your PC, check with the software publisher." But I'm running the OS version it says on the install page.

Is there an easier way to go about this?
Reply With Quote