Before we start: I hate PowerShell’s lack of consistency for error handling so I did not bother to handle all error since this is only a code snippet.
I wanted to check how one can set and force MFA authentication right from the start. While there is no real practical use for this, it was a good exercice.
Nota: All names where generated using Fake Name Generator so don’t bother sending me GDPR notices. As lawyers say: This is a work of fiction. Names, characters, business, events and incidents are the products of the author’s imagination. Any resemblance to actual persons, living or dead, or actual events is purely coincidental.

Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.