{"id":1630,"date":"2023-03-26T18:44:01","date_gmt":"2023-03-26T16:44:01","guid":{"rendered":"https:\/\/alessandromasciadri.com\/?p=1630"},"modified":"2023-03-26T18:47:29","modified_gmt":"2023-03-26T16:47:29","slug":"come-collegarsi-ad-exchange-online-powershell","status":"publish","type":"post","link":"https:\/\/alessandromasciadri.com\/come-collegarsi-ad-exchange-online-powershell\/","title":{"rendered":"Come collegarsi ad Exchange Online PowerShell"},"content":{"rendered":"\t\t<div data-akihiro-type=\"ama-post\" data-akihiro-id=\"1630\" class=\"akihiro akihiro-1630\" data-akihiro-post-type=\"post\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-6abd866 e-flex e-con-boxed e-con e-parent\" data-id=\"6abd866\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-bf3953e akihiro-widget akihiro-widget-text-editor\" data-id=\"bf3953e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In questo articolo vediamo come connettersi ad Exchange Online PowerShell utilizzando il modulo Exchange Online PowerShell con Multi-Factor Authentication.<\/p><p>Il modulo Exchange Online PowerShell utilizza metodologie moderne di autenticazione per collegarsi alle risorse Exchange di Microsoft 365. Se si vuole approfondire maggiormente in merito al modulo Exchange Online PowerShell si pu\u00f2 fare riferimento alla <a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/exchange\/exchange-online-powershell-v2?view=exchange-ps\" target=\"_blank\" rel=\"noopener\">documentazione ufficiale<\/a>.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-fbb8a67 akihiro-widget akihiro-widget-heading\" data-id=\"fbb8a67\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Collegarsi ad Exchange Online via PowerShell<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-38a9e57 akihiro-widget akihiro-widget-text-editor\" data-id=\"38a9e57\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Il primo passo \u00e8 aprire una PowerShell ed importare il modulo<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-c28acd1 akihiro-widget akihiro-widget-code-highlight\" data-id=\"c28acd1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>Import-Module ExchangeOnlineManagement<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-ca58aaa akihiro-widget akihiro-widget-text-editor\" data-id=\"ca58aaa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Lanciamo il seguente comando<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-86ee552 akihiro-widget akihiro-widget-code-highlight\" data-id=\"86ee552\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>Connect-ExchangeOnline<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-d921c1a akihiro-widget akihiro-widget-text-editor\" data-id=\"d921c1a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Con sommo piacere notiamo che\u00a0viene aperta una finestra del browser dove procedere con l&#8217;autenticazione mediante username e password, nonch\u00e9 MFA(!) nel caso configurata.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-af3678c akihiro-widget akihiro-widget-heading\" data-id=\"af3678c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Disconnettersi da Exchange Online via PowerShell<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-2abca83 akihiro-widget akihiro-widget-text-editor\" data-id=\"2abca83\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Terminati i lavori su Exchange, possiamo disconnetterci in sicurezza lanciando questo comando<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-5d279fe akihiro-widget akihiro-widget-code-highlight\" data-id=\"5d279fe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>Disconnect-ExchangeOnline -Confirm:$False<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-0f885fc akihiro-widget akihiro-widget-heading\" data-id=\"0f885fc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Installare il modulo ExchangeOnlineManagement<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-a11fac4 akihiro-widget akihiro-widget-text-editor\" data-id=\"a11fac4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Nel caso il modulo ExchangeOnlineManagement non sia installato, possiamo provvedere all&#8217;installazione lanciando il seguente comando<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-d5f8261 akihiro-widget akihiro-widget-code-highlight\" data-id=\"d5f8261\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>Install-Module -Name ExchangeOnlineManagement -Force<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-d0609c9 akihiro-widget akihiro-widget-text-editor\" data-id=\"d0609c9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>That&#8217;s it! La gestione di Exchange Online non potevano renderla pi\u00f9 semplice. Per approfondire l&#8217;argomento possiamo sempre fare riferimento alla docuementazione ufficiale di Microsoft: <a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/exchange\/connect-to-exchange-online-powershell?view=exchange-ps\" target=\"_blank\" rel=\"noopener\">https:\/\/learn.microsoft.com\/en-us\/powershell\/exchange\/connect-to-exchange-online-powershell?view=exchange-ps<\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In questo articolo vediamo come connettersi ad Exchange Online PowerShell utilizzando il modulo Exchange Online PowerShell con Multi-Factor Authentication. Il modulo Exchange Online PowerShell utilizza metodologie moderne di autenticazione per collegarsi alle risorse Exchange di Microsoft 365. Se si vuole approfondire maggiormente in merito al modulo Exchange Online PowerShell si pu\u00f2 fare riferimento alla documentazione [&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":[20,26,19],"class_list":["post-1630","post","type-post","status-publish","format-standard","hentry","category-sistemistica","tag-linux","tag-powershell","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/1630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/comments?post=1630"}],"version-history":[{"count":7,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/1630\/revisions"}],"predecessor-version":[{"id":1637,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/1630\/revisions\/1637"}],"wp:attachment":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/media?parent=1630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/categories?post=1630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/tags?post=1630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}