The script works on the remote box and with browser from the box I am remoting from.
The code is:
(Invoke-WebRequest https://xxxxxxxxx/$DateFrom).Content
Error is:
ERROR: The remote server returned an error: (404) Not Found.
ERROR: + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
ERROR: + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
ERROR: + PSComputerName : XXX
ERROR:
Remote Invoke-WebRequest gets error
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- cgjackson@yahoo.com
- Posts: 7
- Last visit: Tue Aug 07, 2018 5:16 am