Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Saravanan_ameer
Frequent Visitor

Powershell Connection


For the MFA enabled account I need to run the PowerShell scripts without any user intersection for the below connections

1.Connect-MsolService

2.Connect-SPOService

3.Connect-MicrosoftTeams

Please help to get the steps to connect

3 REPLIES 3
lbendlin
Super User
Super User

MFA explicitly requires user interaction.

I understood that MFA required user interaction, here the issue is we are autmoted to run those scriots using those connections and based on that our management is getting reports but since the MFA enabled for that account the scriots are stopped.Is there any way to make the connection by using unattended scripts

Use a service principal account that doesn't need MFA.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors