PowerShell automation and MFA

Frequent Visitor



I have a few basic PowerShell scripts (password expiry email, new user, leavers etc) that I run on a regular basis. The expiry email is automated. However, with MFA, this stops as well as any other script I want to run on a schedule without any user interaction.


Is there anyway around this? I've seen app passwords mentioned but will this cover a log in to both MSOnline and Exchange Online? Also, I've seen that app passwords are being depreciated soon.


Any help is appreciated.

1 Reply

@James90 How about a account exclusively for the automation processes in PowerShell (MFA disabled) leaving your regular account intact. But maybe not what your looking for.