Invoke-WebRequest : Unable to connect to the remote server

The error message "Invoke-WebRequest : Unable to connect to the remote server" generally means that the PowerShell command is unable to establish a connection to the specified remote server. This could be due to a number of factors, such as network connectivity issues, inadequate permissions, or incorrect syntax in the command.

Related articles:

Invoke-WebRequest: Unable to connect to the remote server
The Invoke-WebRequest is a PowerShell cmdlet used to send HTTP and HTTPS requests to a web page and receive response from it. It is a powerful tool for retrieving and manipulating web content in PowerShell scripts.