{"id":375,"date":"2019-08-16T14:43:02","date_gmt":"2019-08-16T14:43:02","guid":{"rendered":"http:\/\/www.torontohelpdesk.ca\/blog\/?p=375"},"modified":"2019-08-16T15:38:19","modified_gmt":"2019-08-16T15:38:19","slug":"office-365-connecting-to-powershell-with-mfa","status":"publish","type":"post","link":"https:\/\/www.torontohelpdesk.ca\/blog\/office-365-connecting-to-powershell-with-mfa\/","title":{"rendered":"Office 365 &#8211; Connecting to PowerShell with MFA"},"content":{"rendered":"\n<p><strong>Problem: <\/strong><\/p>\n\n\n\n<p>You enable MFA in your organization and now you can&#8217;t connect through PowerShell<\/p>\n\n\n\n<p><strong>Solution:<\/strong><\/p>\n\n\n\n<p>(h\/t me)<\/p>\n\n\n\n<p>Referencing the following doc (<a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/exchange\/exchange-online\/connect-to-exchange-online-powershell\/mfa-connect-to-exchange-online-powershell?view=exchange-ps\">https:\/\/docs.microsoft.com\/en-us\/powershell\/exchange\/exchange-online\/connect-to-exchange-online-powershell\/mfa-connect-to-exchange-online-powershell?view=exchange-ps<\/a>) <\/p>\n\n\n\n<p><em>Notes: <\/em><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Use Internet Explorer when you download and run the app<\/li><li>Once you download and install the app, open up PowerShell (admin mode) and run winrm \/quickconfig and hit YES<\/li><li>All PowerShell commands should be run through the new app Microsoft Exchange Online Powershell Module<\/li><li>When you run <code>Connect-EXOPSSession -UserPrincipalName chris@contoso.com<\/code> you&#8217;ll get an error, ignore the error<ol><li> $UserCredential  = Get-Credential <\/li><li> Import-Module  MSOnline <\/li><li> Connect-MsolService  \u2013Credential $UserCredential <\/li><\/ol><\/li><\/ol>\n\n\n\n<p>This is for the initial setup, subsequently, I&#8217;m not sure which steps to go through.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: You enable MFA in your organization and now you can&#8217;t connect through PowerShell Solution: (h\/t me) Referencing the following doc (https:\/\/docs.microsoft.com\/en-us\/powershell\/exchange\/exchange-online\/connect-to-exchange-online-powershell\/mfa-connect-to-exchange-online-powershell?view=exchange-ps) Notes: Use Internet Explorer when you download and run the app Once you download and install the app, <a class=\"more-link\" href=\"https:\/\/www.torontohelpdesk.ca\/blog\/office-365-connecting-to-powershell-with-mfa\/\">Continue reading <span class=\"screen-reader-text\">  Office 365 &#8211; Connecting to PowerShell with MFA<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99],"class_list":["post-375","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-office-365"],"_links":{"self":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/comments?post=375"}],"version-history":[{"count":2,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/posts\/375\/revisions\/379"}],"wp:attachment":[{"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.torontohelpdesk.ca\/blog\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}