{"id":122,"date":"2015-03-16T22:09:21","date_gmt":"2015-03-16T11:09:21","guid":{"rendered":"https:\/\/4it.com.au\/kb\/?post_type=article&#038;p=122"},"modified":"2022-12-01T19:51:02","modified_gmt":"2022-12-01T08:51:02","slug":"how-to-connect-to-office-365-exchange-online-using-remote-powershell","status":"publish","type":"article","link":"https:\/\/4it.com.au\/kb\/article\/how-to-connect-to-office-365-exchange-online-using-remote-powershell\/","title":{"rendered":"How to Connect to Office 365 Exchange Online using Remote Powershell when MFA Enabled"},"content":{"rendered":"<p>Remote Powershell can be used to run commands on Exchange Online. \u00a0This can be particularly useful if a feature is not available using the exchange GUI.<\/p>\n<h3>Step 1<\/h3>\n<p>Open Windows Powershell as an Administrator.<\/p>\n<h3>Step 2<\/h3>\n<p>If this is the first time run the following command:<\/p>\n<pre>Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.3\r\n\r\nWhen prompted select A (Yes to All)<\/pre>\n<h3>Step 3<\/h3>\n<p>Run the following command:<\/p>\n<pre>Import-Module ExchangeOnlineManagement<\/pre>\n<h3>Step 4<\/h3>\n<p>Run the following command:<\/p>\n<pre>Connect-ExchangeOnline -UserPrincipalName xxxxxx@xxxxxx.onmicrosoft.com -ShowProgress $true<\/pre>\n<p>Where xxxxxx@xxxxxx.onmicrosoft.com is the Global Administrator<\/p>\n<p>A dialogue box should pop up at this stage. \u00a0Enter in your administrator username and password for exchange online.\u00a0 Continue to authenticate with MFA<\/p>\n<div style='text-align:left' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>Remote Powershell can be used to run commands on Exchange Online. \u00a0This can be particularly useful if a feature is not available using the exchange GUI. Step 1 Open Windows Powershell as an Administrator. Step 2 If this is the first time run the following command: Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.3 When prompted select A [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","article-category":[7,45],"article-tag":[47,46,48],"class_list":["post-122","article","type-article","status-publish","format-standard","hentry","article-category-office-365","article-category-remote-powershell","article-tag-exchange-online","article-tag-office-365","article-tag-remote-powershell"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":26,"sum_votes":53},"_links":{"self":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/comments?post=122"}],"version-history":[{"count":0,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article\/122\/revisions"}],"wp:attachment":[{"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/media?parent=122"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-category?post=122"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/4it.com.au\/kb\/wp-json\/wp\/v2\/article-tag?post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}