OfficeDev / O365-InvestigationTooling

MIT License
575 stars 361 forks source link

Unable to use with 2FA #8

Open jimmyeao opened 7 years ago

jimmyeao commented 7 years ago

Script is not compatible with 2 factor authentication

paulschnack commented 6 years ago

No it doesn't, would be great if it could be modified so it did.

alexlushsevernunival commented 6 years ago

I find it amusing that MS link to this script from Office365 Secure Score. One of the top rules that Secure Score suggests first is to 'enable Multi-Factor auth for ALL admins'. Assuming you have followed their advise on that rule, you are then unable to run this script to check mailbox delegation as it doesn't support MFA!!!

citykidz commented 6 years ago

Assuming you're using the latest Microsoft Exchange Online Powershell module (and you'll know you are, because it will allow you to login using MFA), then just copy and run everything from line 9 and forward.

knibbscs commented 6 years ago

Works fine with 2FA - you just need to create and use an app password to sign in.

sbdoroff commented 6 years ago

@knibbscs - not able to get to work with app pass

domcote commented 6 years ago

yeah - go here to get the PS Module that uses MFA: https://technet.microsoft.com/en-us/library/mt775114(v=exchg.160).aspx. Then follow the instructions to connect at the top of the shell - PS:Connect-EXOPSSession…. works fine!