Open jhowel opened 2 years ago
There are numerous ’ characters that need to be replaced with '.
The following needs to be added in the various function Process>Try sections before the invoke-restmethod:
PROCESS{
if ($coun = $true){ #API call Write-Verbose -Message "Requesting data from IBM XForce" try{ $proceed = $true if($Domain -ne ""){ **[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null** $pDNS = $(Invoke-RestMethod -Uri "$API_URI/$Domain" -Method: Get -Headers $head)
If you don't you'll see write-error errors.
After sorting out the above issues, the scripts work very well.
Hey @jhowel
I have some troubling to understand the script. Could we chat a bit, if you don't mind?
There are numerous ’ characters that need to be replaced with '.
The following needs to be added in the various function Process>Try sections before the invoke-restmethod:
PROCESS{
If you don't you'll see write-error errors.
After sorting out the above issues, the scripts work very well.