bseltz-cohesity / scripts

Cohesity REST API examples in PowerShell and Python
Apache License 2.0
104 stars 41 forks source link

scripts/powershell /protectO365Mailboxes #128

Closed vincentmonin closed 1 year ago

vincentmonin commented 1 year ago

Hello Brian,

When I use this script in the context of a Cohesity organisation, I get the following error message:

test

However, if I use the cohesity-api.ps1 SDK from August 2022, the connection goes through without a problem.

Thank's for you return.

Best regards, Vincent MONIN

bseltz-cohesity commented 1 year ago

Hi @vincentmonin try getting the latest cohesity-api.ps1 file (just updated) here: https://github.com/bseltz-cohesity/scripts/tree/master/powershell/cohesity-api

vincentmonin commented 1 year ago

Hi Brian, Thank you very much for your feedback ! Perfect, it's working now! I'm able to connect. And extracting mailboxes from the autoprotect job to a regular job works.

Now I'm getting another error when I run the 2nd script (purging mailboxes from the autoprotect job to a classic job): image

Thank's for you return.

bseltz-cohesity commented 1 year ago

I have updated the script, please get the update here and let me know if that solves it: https://github.com/bseltz-cohesity/scripts/tree/master/powershell/protectO365Mailboxes

vincentmonin commented 1 year ago

Hi Brian,

Thank's, it's working now !

Have a nice day.