Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Get-ProtectionAlert #247

Closed
brianberryNZ opened this issue Jul 4, 2023 · 2 comments
Closed

Error with Get-ProtectionAlert #247

brianberryNZ opened this issue Jul 4, 2023 · 2 comments
Labels
question Further information is requested

Comments

@brianberryNZ
Copy link

When I run Get-ORCAReport, I get an error related to Get-ProtectionAlert:
"Get-ProtectionAlert: The term 'Get-ProtectionAlert' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
I find that I need to first run Connect-IPPSSession -UserPrincipalName User@someplace.some before I can use Get-ProtectionAlert interactively, otherwise I get the same error.
I'm running ExchangeOnlineManagement 3.2.0 and running the report from PowerShell 7.3.5.

@cammurray
Copy link
Owner

Hi @brianberryNZ

That's unusual, because we run Connect-IPPSSession as part of Get-ORCAReport.

Can you confirm some things for me;

  • Are you running Get-ORCAReport from a fresh new powershell window? (Just seeing if there's a stale connection)
  • When you run Get-ORCAReport, are you asked to login twice, or just once? (One should be for Exchange Online and the second for SCC)

@cammurray cammurray added the question Further information is requested label Jul 19, 2023
@brianberryNZ
Copy link
Author

Hi @cammurray,
I have tested again from a VM so I can isolate other logins. I do get 2 login prompts, and if I log in to both, the report runs fine.

I think I must have missed the second login prompt, or maybe it used another credential. Most likely I missed it because on my main machine, it pops up in the background for some reason.
Some feedback on the tool and report. We use it to review our configs every 3 months. It provides a great way to keep on top of config drift changes made by some team members, and helps us stay on top of the latest recommendations. THANKS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants