Yes, these seems like a silly feature to add (since you can just do a single identity from the haveibeenpwned.com website, buuuuuuuttttttttttt…..), I wanted to showcase the script’s versatility while at a customer, so I added this one on the fly today.
Basically, just keep on using it the way you’ve been using it–only now you can use the -Identity parameter as well.

Easy-peasy.
I also updated it so the default parameter is Identity, and then, if you don’t specify anything, to display the contents of Get-Help.

Check your pwn, check your friends, but never check your friend’s pwn. Unless they ask you.


Hello,
I think it can be better to use
If (!($IncludeGuests)) { $MSOLUsers = $MSOLusers | ? { $_.UserType -ne “Guest” } }
because sometimes the UserType is empty for Member user :
https://itpro-tips.com/2019/usertype-empty-usertype-vide/
Definitely interesting–hadn’t seen that one. I’ll update it accordingly.
Hi Aaron,
It looks like the $Imported variable add an empty object to $users, and the last object queried is an null object.
[array]$Imported= @() can solve it.
Nice catch! I’ve updated it accordingly. Thanks!