AR-k12code / CognosDownloader

MIT License
2 stars 3 forks source link

Powershell Core and Exit Code #7

Closed carbm1 closed 3 years ago

carbm1 commented 4 years ago

On Powershell Core 7 RC3 the CognosDownload script fails with a SSL Runspace error so fixed that by [System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null

I need the script to exit with a proper code in order to wrap it in a loop until exit code = 0. For some reason the script was returning an $LASTEXITCODE = 9 without a proper exit at the end.