Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

'Get-mcasalert -resolutionstatus open' Not working #60

Open
tlrbradley opened this issue Sep 25, 2019 · 4 comments
Open

'Get-mcasalert -resolutionstatus open' Not working #60

tlrbradley opened this issue Sep 25, 2019 · 4 comments

Comments

@tlrbradley
Copy link

Dismissed alerts seem to show up properly, but when searching for open alerts, I am getting both open and resolved alerts. Since the limit is 100, I am actually only seeing 7 open alerts in my search and the rest are resolved. Any thoughts?

@StevenShockley
Copy link

I'm seeing the same thing. Using -Skip 100 seems to be workaround, but not a solution since I don't know if there's a way to find out how many alerts there are total (to create a loop).

It'd be nice if the script did its own throttle management, too. I don't really want to write an application just to do get-mcasalert | set-mcasalert -dismiss.

@TristankMS
Copy link

Same problem here. I worked around it by adding a new "Open" switch to get-mcasalerts.ps1 and then used that in place of the more complex filter instead, and it seems to work reliably.

@dpdrc
Copy link

dpdrc commented Jun 26, 2020

Same problem here. I worked around it by adding a new "Open" switch to get-mcasalerts.ps1 and then used that in place of the more complex filter instead, and it seems to work reliably.

Hi

Would you be able to share the code for this please?

@TristankMS
Copy link

Hi

Would you be able to share the code for this please?

My original was from 3.3.4; I forked the current version and added the same lines. YMMV! https://github.com/TristankMS/MCAS/blob/master/Functions/Get-MCASAlert.ps1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants