Thanks — that error message is just PowerShell telling you the Invoke‑WebRequest call got a bad URI because of the way the command was entered (PowerShell was confused by the arguments). Two easy, corrected one‑line tests — run these in an elevated PowerShell window (Admin). They’re short; type them exactly, one at a time, then photograph the output and upload the photo here.
1) Test HTTP by IP (bypasses DNS):
(Invoke-WebRequest -Uri "
http://216.58.214.14" -UseBasicParsing -TimeoutSec 8).StatusCode
2) Test HTTPS by name (normal name resolution):
(Invoke-WebRequest -Uri "
https://www.google.com" -UseBasicParsing -TimeoutSec 8).StatusCode
3) If you still want to explicitly bypass any proxy, use $null (not an empty string):
(Invoke-WebRequest -Uri "
https://www.google.com" -UseBasicParsing -TimeoutSec 8 -Proxy $null).StatusCode
Why this fixes the “relative URI” error
- The error commonly appears when PowerShell receives malformed input (unbalanced quotes/parentheses) or when a parameter that expects a full URI got something else. Using the exact lines above avoids that and uses $null if you want to tell PowerShell “no proxy” explicitly.
If those two tests both fail, also run these quick short checks and photo their outputs (they’re one line each):
4) curl (shows more detail from the native curl)
curl -v "
http://216.58.214.14"
curl -v "
https://www.google.com"
5) Winsock catalog (first ~screenful is enough)
netsh winsock show catalog
6) DNS client status (you’ve run this but photo it again after these tests)
sc.exe query dnscache
What to tell/upload after you run them
- A photo of the exact output for each of commands 1–3 (and 4 if you run it).
- If the IP test (1) succeeds (StatusCode 200) but the host test (2) fails with a name resolution error, that proves app‑level name resolution is still broken. If both IP and name fail, that shows app‑level outbound HTTP(S) is being blocked (filter/driver/stack issue).
- If the commands return red error text, photograph the full error — that text is the diagnostic.
Next steps I’ll recommend after those outputs
- If IP works but name fails: show me netsh winhttp show proxy and your hosts file; I’ll give the exact fix (usually reset winhttp proxy or remove a proxy env var).
- If both fail: I’ll walk you through Network Reset / NIC driver reinstall or advise a repair install depending on what the error text shows.
Run the three corrected Invoke‑WebRequest lines now and upload photos of the results. I’ll interpret them and give the precise next command.