I am running below script to export vROps configuration. My purpose is to export the configuration from old vROps and import into the new appliance.
While running this script, I am getting attached error. I putting correct credentials which I am using to login to vROps console.
Invoke-Webrequest : The remote server returned an error: (401) Unauthorized.
When you use Invoke-RestMethod instead of Invoke-WebRequest, see Access Internal REST APIs in vR Ops with PowerShell, do you see the same result?