You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Error
After wiping the disk, the script begins to test the web connectivity and returns false causing the script to fail. Upon further investigation I was able to trace it back to the Test-WebConnection Uri, that being google.com.
If I invoke a web request like such:
Invoke-WebRequest -Method 'Head' -Uri 'google.com' -UseBasicParsing
It would return an error in which it stated that it was forbidden under my policy to reach this site. This is most likely because we are enforcing HTTPS somewhere along the way.
Work Around
To work around this, I edited the Test-WebConnection function and changed the Uri to 'https://google.com' and that was successful.
Is it possible to change the function so that it checks for both http and https connections to avoid this potential error in the future?
This was all tested on a Dell OptiPlex 5090, I can send some screenshot of the exact errors should you need them.
The text was updated successfully, but these errors were encountered:
The Error
After wiping the disk, the script begins to test the web connectivity and returns false causing the script to fail. Upon further investigation I was able to trace it back to the Test-WebConnection Uri, that being google.com.
If I invoke a web request like such:
Invoke-WebRequest -Method 'Head' -Uri 'google.com' -UseBasicParsing
It would return an error in which it stated that it was forbidden under my policy to reach this site. This is most likely because we are enforcing HTTPS somewhere along the way.
Work Around
To work around this, I edited the Test-WebConnection function and changed the Uri to 'https://google.com' and that was successful.
Is it possible to change the function so that it checks for both http and https connections to avoid this potential error in the future?
This was all tested on a Dell OptiPlex 5090, I can send some screenshot of the exact errors should you need them.
The text was updated successfully, but these errors were encountered: