Skip to content

Error: Operation cancelled due to security concerns. #309

Description

@spapineau-apg

Running the script as is I first receive an exception message of "The remote server returned an error: (401) Unauthorized.". I noticed the url had an extra slash in it: "url": "https://www.yammer.com//api/v1/networks/fetch_current_enforce_license_state".

So, I updated the script to remove the trailing slash on the listed URL.

Rerunning with the update, I receive:
"exception_message": "Operation cancelled due to security concerns. Use -UseBasicParsing parameter for safe HTML parsing without script execution.",
"stack": " at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)"

I've looked at the script and attempted to input the -UseBasicParsing but never found success, I suspect I'm inputting it in the wrong place. Can you point me in the right direction?

Thanks!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions