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.
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.