拥有MFA时,请使用Windows Powershell ISE for Exchange [英] Use Windows Powershell ISE for Exchange when you have MFA

查看:174
本文介绍了拥有MFA时,请使用Windows Powershell ISE for Exchange的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Windows PowerShell ISE已有一段时间了,已成功连接到Azure AD,Exchange和SharePoint.最近,组织发生了变化,因此我们现在将MFA与Exchange配合使用,我遵循此

I have been using Windows PowerShell ISE for some time, connecting to Azure AD,Exchange and SharePoint successfully. Recently a change in the organisation was made so we are now using MFA with exchange, I followed this https://technet.microsoft.com/en-us/library/mt775114(v=exchg.160).aspx and everything works as expected.

我的问题是-现在可以使用Windows PowerShell ISE运行交换命令吗?

My question is - Is there a way to use windows PowerShell ISE to run exchange commands now?

现在看来,我需要打开Exchange Online远程PowerShell模块并通过该模块连接并运行任何交换命令.我曾尝试在Windows powerShell ISE中使用Connect-EXOPSSession cmdlet,但它不了解该cmdlet

Now it seems I am required to open the Exchange Online Remote PowerShell Module and connect and run any exchange commands through that module. I have tried using Connect-EXOPSSession cmdlet in the windows powerShell ISE but it does not understand the cmdlet

推荐答案

要与MFA在线连接交换,您需要安装Microsoft的Exchange Online PowerShell模块(EXO).

To connect exchange online with MFA, you need to install Microsoft's Exchange Online PowerShell Module(EXO).

您可以从Exchange管理中心下载EXO.

You can download EXO from Exchange Admin Center.

安装EXO后,请在Windows Powershell ISE中执行以下注释,

After installing EXO, exeute below comments in Windows Powershell ISE,

$MFAExchangeModule = ((Get-ChildItem -Path $($env:LOCALAPPDATA+"\Apps\2.0\") -Filter CreateExoPSSession.ps1 -Recurse ).FullName | Select-Object -Last 1)
#Importing Exchange MFA Module 
  . "$MFAExchangeModule" 
  Connect-EXOPSSession -UserPrincipalName Admin@Contoso.com

这篇关于拥有MFA时,请使用Windows Powershell ISE for Exchange的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆