{"id":1436,"date":"2020-02-10T10:00:37","date_gmt":"2020-02-10T16:00:37","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1436"},"modified":"2020-02-10T10:00:37","modified_gmt":"2020-02-10T16:00:37","slug":"o365-powershell-cli","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2020\/02\/o365-powershell-cli\/","title":{"rendered":"O365 Powershell CLI"},"content":{"rendered":"\n<p>Needed to connect to O365 when my account has MFA enabled.<\/p>\n\n\n\n<p>New computer, so here&#8217;s the full setup.<\/p>\n\n\n\n<p>Using Internet Explorer or Edge, open your ECP\/EAC (Admin of Exchange) portal page on your O365 account.<br>\nClick on Hybrid<br>\nClick on Configure<br>\nThis installs a clickonce app for the Exchange Online powershell module.<\/p>\n\n\n\n<p>Open PowerShell as an Administrator<br><code> winrm quickconfig<\/code><br> Enable per the wizard<br><code> winrm set winrm\/config\/service '@{AllowUnencrypted=\"true\"}'<\/code><br> <code>winrm set winrm\/config\/service\/auth '@{Basic=\"true\"}'<\/code><\/p>\n\n\n\n<p>Now connect to your O365 system<br>\nOpen PowerShell (the exchange-based one from the first steps)<\/p>\n\n\n\n<p><code>Connect-EXOPSSession -UserPrincipalName<\/code> yourusername@yourdomain.tld<br> If prompted, sign in<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Needed to connect to O365 when my account has MFA enabled. New computer, so here&#8217;s the full setup. Using Internet Explorer or Edge, open your ECP\/EAC (Admin of Exchange) portal page on your O365 account. Click on Hybrid Click on Configure This installs a clickonce app for the Exchange Online powershell module. Open PowerShell as &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2020\/02\/o365-powershell-cli\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">O365 Powershell CLI<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1436","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1436"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1436\/revisions"}],"predecessor-version":[{"id":1437,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1436\/revisions\/1437"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}