rubrik-scripts-for-powershell icon indicating copy to clipboard operation
rubrik-scripts-for-powershell copied to clipboard

get-events.ps1 throws error at Invoke-WebRequest

Open paschott opened this issue 5 years ago • 2 comments

What happened:

When running this in both PS 5.1 and PS 7.0.1, replacing with my Rubrik server, credentials, etc. I get the following: Invoke-WebRequest: C:\Users\username\Documents\PowerShell\Modules\Rubrik\5.0.1\Private\Invoke-RubrikWebRequest.ps1:18:19 Line | 18 | … $result = Invoke-WebRequest -UseBasicParsing -SkipCertificateCheck … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | The server either does not recognize the request method, or it lacks the ability to fulfill the request.

What you expected to happen:

I was hoping to get a list of active events/jobs

How to reproduce it (as minimally and precisely as possible): Install Rubrik Module. Adjust parameters, and run the script from the repo Get error

Anything else we need to know?: I appreciate the work on this script. It looks like it will be really helpful.

paschott avatar Jul 01 '20 23:07 paschott

@paschott

yes! I too get d same error as below screenshot for reference

image

any lead on how it can be resolved?

KavyaKanya avatar Sep 20 '20 16:09 KavyaKanya

Same here image

spensoft avatar Oct 19 '22 18:10 spensoft