PowerShell + SharePoint multi-factor authentication
I thing it would make SharePoint Online more secure if you could get PowerShell "SharePoint Online Management Shell" to work with SharePoint multi-factor authentication? So if I use a command like
Connect-SPOService -Url site-admin.sharepoint.com/ -credential <a rel="nofollow noreferrer" href="mailto:email@example.com">firstname.lastname@example.org</a>
you also need addition authentication.
At work I need to connect to the company SharePoint online site using PowerShell on different company computers. I am always worried the computer I am using might have hidden spyware or a virus on.
Using PowerShell with SharePoint multi-factor authentication would make the connection more secure. Even if someone was able to get the App Password they would also need access to my mobile for the text password (multi-factor authentication)
I think it would be more secure if a future addition of PowerShell ISE would have Office 365 Multi-Factor Authentication capabilities.
What do you think?
Rob Nicholson commented
I've just turned MFA on for a couple of test users. Sounds good in practise, unworkable in reality. The requirement to use app passwords for Outlook and Skype is just not workable for normal users. Answering your question, I suspect you'll have to use an app password for Powershell - each time. Which means that as the app password is system generated and certainly not memorable, you're going to have to write it down. Doh!