{"id":2652,"date":"2017-07-28T01:34:08","date_gmt":"2017-07-28T01:34:08","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=2652"},"modified":"2018-09-06T01:27:39","modified_gmt":"2018-09-06T01:27:39","slug":"how-to-connect-to-office-365-when-2fa-is-enabled-on-the-account","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/random\/how-to-connect-to-office-365-when-2fa-is-enabled-on-the-account","title":{"rendered":"How to connect to Office 365 via Powershell when 2fa \\ Two Factor Authentication is enabled on the account"},"content":{"rendered":"<p>The Exchange Online Remote PowerShell Module needs to be installed on your computer:<\/p><ol><li><p>Open the Exchange admin center (EAC) for your Exchange Online organization. For instructions, see\u00a0<a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/jj200743(v=exchg.160).aspx\">Exchange admin center in Exchange Online<\/a>.<\/p><\/li><li><p>In the EAC, go to\u00a0<strong>Hybrid<\/strong>\u00a0&gt;\u00a0<strong>Setup<\/strong>\u00a0and click the appropriate\u00a0<strong>Configure<\/strong>\u00a0button to download the Exchange Online Remote PowerShell Module for multi-factor authentication.<\/p><img decoding=\"async\" id=\"24645e56-8b11-4c0f-ace4-09bdb2703562\" title=\"Download the Exchange Online PowerShell Module from the Hybrid tab in the EAC\" src=\"https:\/\/i-technet.sec.s-msft.com\/en-us\/library\/mt775114.24645e56-8b11-4c0f-ace4-09bdb2703562(v=exchg.160).png?f=255&amp;MSPPError=-2147217396\" alt=\"Download the Exchange Online PowerShell Module from the Hybrid tab in the EAC\" \/><\/li><li><p>In the\u00a0<strong>Application Install<\/strong>\u00a0window that opens, click\u00a0<strong>Install<\/strong>.<\/p><img decoding=\"async\" id=\"0fd389a1-a32d-4e2f-bf5f-78e9b6407d4c\" title=\"Click Install in the Exchange Online PowerShell Module window\" src=\"https:\/\/i-technet.sec.s-msft.com\/en-us\/library\/mt775114.0fd389a1-a32d-4e2f-bf5f-78e9b6407d4c(v=exchg.160).png?f=255&amp;MSPPError=-2147217396\" alt=\"Click Install in the Exchange Online PowerShell Module window\" \/><\/li><\/ol><p>Open<\/p><p>C:\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Corporation\\Microsoft Exchange Online Powershell Module.appref-ms<\/p><p>Run<\/p><div id=\"code-snippet-4\" class=\"codeSnippetContainer img-responsive\"><div class=\"codeSnippetContainerCodeContainer\"><div id=\"CodeSnippetContainerCode_5166fe6a-c7a1-46ae-b002-78de391cdada\" class=\"codeSnippetContainerCode\" dir=\"ltr\"><div><pre>Connect-EXOPSSession -UserPrincipalName chris@contoso.com<br \/><br \/><strong>Powershell<\/strong><br \/><br \/><a href=\"https:\/\/gallery.technet.microsoft.com\/Office-365-Connection-47e03052\">https:\/\/gallery.technet.microsoft.com\/Office-365-Connection-47e03052<\/a><br \/><br \/><strong>Video to Send User<\/strong><br \/><br \/><a href=\"https:\/\/channel9.msdn.com\/posts\/Multi-Factor-Account-Setup\">https:\/\/channel9.msdn.com\/posts\/Multi-Factor-Account-Setup<\/a><\/pre><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>The Exchange Online Remote PowerShell Module needs to be installed on your computer:Open the Exchange admin center (EAC) for your Exchange Online organization. For instructions, see\u00a0Exchange admin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1965,1206,576],"class_list":["post-2652","post","type-post","status-publish","format-standard","hentry","category-random","tag-2fa","tag-1206","tag-powershell"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=2652"}],"version-history":[{"count":4,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2652\/revisions"}],"predecessor-version":[{"id":3621,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2652\/revisions\/3621"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=2652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=2652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=2652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}