{"id":1196,"date":"2021-06-24T02:24:22","date_gmt":"2021-06-24T02:24:22","guid":{"rendered":"https:\/\/techpog.com\/?p=1196"},"modified":"2022-10-12T17:41:39","modified_gmt":"2022-10-12T17:41:39","slug":"how-to-connect-to-powershell-to-your-office-365-exchange-account","status":"publish","type":"post","link":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/","title":{"rendered":"How to Connect to PowerShell to your Office 365 Exchange Account"},"content":{"rendered":"

Managing Exchange Online with PowerShell makes a lot of daily tasks a lot easier (and quicker). Not only for your daily tasks you may need PowerShell, but some settings in Exchange Online can only be changed with PowerShell. So how do you connect to Exchange Online with PowerShell?<\/span><\/p>\n

\n

\"\"
\nThe latest version of\u00a0Exchange Online Powershell Module, EXO V2,\u00a0<\/strong>that we are going to use supports modern authentication and will work with MFA. So you don\u2019t need to create an app password anymore.<\/p>\n

Requirements for EXO V2<\/h2>\n

The new Exchange Online PowerShell module only works on PowerShell 5.x and lower. It doesn\u2019t work on Linux or Mac. Support for PowerShell 6 and 7 is planned, but there is no release date announced yet.<\/p>\n

You will need to configure PowerShell to run remote scripts. By default this is disabled.<\/p>\n<\/div>\n

    \n
  1. Open PowerShell in an elevated mode<\/strong>
    \nPress Windows key + X and choose Windows PowerShell (admin)<\/li>\n
  2. Set the execution policy<\/strong>\u00a0to Remote Signed:<\/li>\n<\/ol>\n
    \n
    [fusion_code]U2V0LUV4ZWN1dGlvblBvbGljeSBSZW1vdGVTaWduZWQ=[\/fusion_code]<\/div>\n<\/div>\n

    You only need to set this once per computer. If haven\u2019t set the execution policy and try to connect to Exchange Online you will get an error:<\/p>\n

    Files cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.<\/em><\/p>\n

    Install the Exchange Online V2 Module in PowerShell<\/h3>\n

    We need to install the EXO V2 Module in PowerShell before we can connect to Exchange Online. Again open an Elevated Windows PowerShell window:<\/p>\n

      \n
    1. Open PowerShell in an elevated mode<\/strong>
      \nPress Windows key + X and choose Windows PowerShell (admin)<\/li>\n
    2. Install PowerShellGet<\/strong>
      \nWe need to install PowerShellGet before we can install the EXO V2 Module.<\/li>\n<\/ol>\n
      \n
      \n
      \n
      # Close and re-open your PowerShell window when done<\/span><\/div>\n<\/div>\n
      \n
      Install-Module<\/span> -Name PowerShellGet -Force<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n
        \n
      1. Install EXO V2 module<\/strong>
        \nWe can now install the latest Exchange Online PowerShell module with the Install-Module cmdlet<\/li>\n<\/ol>\n
        \n
        \n
        \n
        # Add -Force to it when you need to update EXO V1.<\/span><\/div>\n<\/div>\n
        \n
        Install-Module<\/span> -Name ExchangeOnlineManagement -Force<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        Automatically check if EXO Module is installed<\/h3>\n

        Are you going to use the Exchange Online module in a script? Then make sure you automatically check if the module is installed before your try to connect.<\/p>\n

        With the use of a single cmdlet, we can list all installed modules in PowerShell. You can prevent unnecessary errors by simply verifying that the ExchangeOnlineManagement module is available.<\/p>\n

        \n
        \n
        \n
        (<\/span>Get-Module<\/span> -ListAvailable -Name ExchangeOnlineManagement<\/span>)<\/span> -ne <\/span>$null<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        The cmd above should return a list of installed Exchange Online modules. If the result is empty, then we know that the module isn\u2019t installed.<\/p>\n

        Connect to Exchange Online with PowerShell<\/h2>\n

        With the Exchange Online Module installed we can now easily connect to Exchange Online with a single cmd in PowerShell:<\/p>\n

        \n
        \n
        \n
        Connect-ExchangeOnline<\/span> -UserPrincipalName ruud@lazyadmin.nl -ShowProgress <\/span>$true<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        The new EXO V2 module also supports connecting to another tenant. If you are a Microsoft Partner and need to connect to another tenant then you can connect to it by adding the\u00a0DelgatedOrganization\u00a0<\/strong>switch.<\/p>\n

        \n
        \n
        \n
        Connect-ExchangeOnline<\/span> -UserPrincipalName john@contoso.com -ShowProgress <\/span>$true<\/span> -DelegatedOrganization contoso.onmicrosoft.com<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        Connecting Exchange Online to PowerShell without Modern Authentication<\/h3>\n

        You can use the following method to connect to Exchange Online in PowerShell, if your account doesn\u2019t support Modern Authentication yet:<\/p>\n

        \n
        \n
        \n
        $cred<\/span> = <\/span>Get-Credential<\/span><\/div>\n<\/div>\n
        \n
        <\/div>\n<\/div>\n
        \n
        Connect-ExchangeOnline<\/span> -Credential <\/span>$cred<\/span> -ShowProgress <\/span>$true<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        Check if Exchange Online is Connected<\/h3>\n

        It\u2019s a good idea to check if a connection already exists when using the Exchange Online module in scripts. Keep in mind that you can only have 5 simultaneous connections to Exchange Online. And you probably don\u2019t want to log in if you don\u2019t need to.<\/p>\n

        \n
        \"connect<\/picture><\/figure>\n<\/div>\n

        The EXO connections are listed in the PowerShell sessions. We can get all sessions with the cmdlet\u00a0Get-PSSession<\/code>.<\/p>\n

        With the snippet below you can check if there is an active ExchangeOnline session:<\/p>\n

        \n
        \n
        \n
        # Check if there is a active EXO sessions<\/span><\/div>\n<\/div>\n
        \n
        $psSessions<\/span> = <\/span>Get-PSSession<\/span> | <\/span>Select-Object<\/span> -Property State, Name<\/span><\/div>\n<\/div>\n
        \n
        If<\/span> (((<\/span>@<\/span>(<\/span>$psSessions<\/span>)<\/span> -like <\/span>‘@{State=Opened; Name=ExchangeOnlineInternalSession*’<\/span>)<\/span>.Count -gt <\/span>0<\/span>)<\/span> -ne <\/span>$true<\/span>)<\/span> {<\/span><\/div>\n<\/div>\n
        \n
        Connect-ExchangeOnline<\/span> -UserPrincipalName john@contoso.com<\/span><\/div>\n<\/div>\n
        \n
        }<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        Getting mailbox information<\/h3>\n

        With the new EXO V2 module you can now easily get the mailbox details with the following shorthand:<\/p>\n

        \n
        \n
        \n
        # Old way:<\/span><\/div>\n<\/div>\n
        \n
        Get-ExoMailbox<\/span> -identity johndoe@lazyadmin.nl<\/span><\/div>\n<\/div>\n
        \n
        <\/div>\n<\/div>\n
        \n
        # With the EXO V2 module you can write the following shorthand<\/span><\/div>\n<\/div>\n
        \n
        Get-ExoMailbox<\/span> johndoe<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        Disconnecting your Sessions<\/h3>\n

        Always make sure you disconnect your Exchange Online session before you close your PowerShell window. If you don\u2019t close the session, you may end up using all 5 remote PowerShell connections to Exchange Online. If that happens you will need to wait for the sessions to expire before you can reconnect.<\/p>\n

        \n
        \n
        \n
        Disconnect-ExchangeOnline<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

        Connecting PowerShell to Exchange Online Alternative<\/h2>\n

        If you can\u2019t use the new EXO v2 module, because you are using Basic Authentication for example, then you still can connect to Exchange Online. Keep in mind that this gets eventually deprecated, so when possible use the Modern Authentication option described earlier.<\/p>\n

        For the basic authentication method we are going to import the Exchange Online cmdlets. First make sure that you have set the execution policy to remote signed:<\/p>\n

          \n
        1. Open PowerShell in an elevated mode<\/strong>
          \nPress Windows key + X and choose Windows PowerShell (admin)<\/li>\n
        2. Set the execution policy<\/strong>\u00a0to Remote Signed:<\/li>\n<\/ol>\n
          \n
          \n
          \n
          Set-ExecutionPolicy<\/span> RemoteSigned<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n
            \n
          1. To connect to Exchange Online we first need to store our credentials:<\/li>\n<\/ol>\n
            \n
            \n
            \n
            $cred<\/span> = <\/span>Get-Credential<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n
              \n
            1. Next we can create and import the Exchange Online cmdlet into PowerShell:<\/li>\n<\/ol>\n
              \n
              \n
              \n
              # Create the session<\/span><\/div>\n<\/div>\n
              \n
              $Session<\/span> = <\/span>New-PSSession<\/span> -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/<\/span>powershell-liveid<\/span>\/ -Credential <\/span>$cred<\/span> -Authentication Basic -AllowRedirection<\/span><\/div>\n<\/div>\n
              \n
              <\/div>\n<\/div>\n
              \n
              # Import it into your PowerShell session<\/span><\/div>\n<\/div>\n
              \n
              Import-PSSession<\/span> $Session<\/span> -DisableNameChecking<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

              Make sure you disconnect your session when you are done:<\/p>\n

              \n
              \n
              \n
              Remove-PSSession<\/span> $Session<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n

              Frequently Asked Questions<\/h2>\n
              \n
              \n

              Error : Files cannot be loaded because running scripts\u00a0\u2026.<\/strong><\/p>\n

              If you get the error\u00a0\u201cFiles cannot be loaded because running scripts is disabled on this system. Provide a valid certificate with which to sign the files.\u201d\u00a0<\/em>then you have forgotten to set the execution policy.<\/p>\n

              Run the following cmd in an elevated PowerShell Window:
              \nSet-ExecutionPolicy RemoteSigned<\/code><\/p>\n<\/div>\n

              \n

              Cannot validate argument on parameter \u2018Session\u2019 \u2013 error<\/strong><\/p>\n

              You are trying to connect to Exchange Online with an MFA enabled account while using the basic authentication option.<\/p>\n

              Make sure you install the latest Exchange Online Module, EXO V2, as explained in the beginning of the article.<\/p>\n<\/div>\n

              \n

              Fail to create a runspace because you have exceeded the maximum number of connections allowed<\/strong><\/p>\n

              You have used all 5 available connections to Exchange Online. Make sure you disconnect your PowerShell sessions.<\/p>\n

              To close the current sessions you get to run the following cmd:<\/p>\n

              Get-PSSession | Remove-PSSession<\/code><\/p>\n<\/div>\n

              \n

              Connecting to remote server outlook.office365.com failed with the following
              \nerror message : Access is denied<\/strong><\/p>\n

              To connect to Exchange Online you will need to use an account that is global admin in Office 365. The account that you are connecting with doesn\u2019t have the correct permissions.<\/p>\n<\/div>\n<\/div>\n

              Wrapping up<\/h2>\n

              The new Exchange Online module is really powerful and makes working with Exchange Online a lot easier. I hope this article helped you to get started. If you have any questions, just drop a comment below.<\/p>\n

              Connect to Exchange Online with PowerShell<\/h2>\n","protected":false},"excerpt":{"rendered":"

              Managing Exchange Online with PowerShell makes a lot of daily tasks a lot easier (and quicker). Not only for your daily tasks you may need PowerShell, but some settings in Exchange Online can only be changed with PowerShell. So how do you connect to Exchange Online with PowerShell? The latest version of\u00a0Exchange Online Powershell Module, […]<\/p>\n","protected":false},"author":2,"featured_media":1234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[],"yoast_head":"\nHow to Connect to PowerShell to your Office 365 Exchange Account<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Connect to PowerShell to your Office 365 Exchange Account\" \/>\n<meta property=\"og:description\" content=\"Managing Exchange Online with PowerShell makes a lot of daily tasks a lot easier (and quicker). Not only for your daily tasks you may need PowerShell, but some settings in Exchange Online can only be changed with PowerShell. So how do you connect to Exchange Online with PowerShell? The latest version of\u00a0Exchange Online Powershell Module, […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Productivity Optimization Guides\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-24T02:24:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-12T17:41:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"873\" \/>\n\t<meta property=\"og:image:height\" content=\"502\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechPog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechPog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\"},\"author\":{\"name\":\"TechPog\",\"@id\":\"https:\/\/techpog.com\/#\/schema\/person\/d95d6b775fbb6c9d2420512ced6c7fa2\"},\"headline\":\"How to Connect to PowerShell to your Office 365 Exchange Account\",\"datePublished\":\"2021-06-24T02:24:22+00:00\",\"dateModified\":\"2022-10-12T17:41:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\"},\"wordCount\":1161,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/techpog.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg\",\"articleSection\":[\"Office 365\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\",\"url\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\",\"name\":\"How to Connect to PowerShell to your Office 365 Exchange Account\",\"isPartOf\":{\"@id\":\"https:\/\/techpog.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg\",\"datePublished\":\"2021-06-24T02:24:22+00:00\",\"dateModified\":\"2022-10-12T17:41:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage\",\"url\":\"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg\",\"contentUrl\":\"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg\",\"width\":873,\"height\":502},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/techpog.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Connect to PowerShell to your Office 365 Exchange Account\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/techpog.com\/#website\",\"url\":\"https:\/\/techpog.com\/\",\"name\":\"TechPOG - Tech Productivity Optimization Guides\",\"description\":\"Technology News, Product Reviews, Step by Step Guides\",\"publisher\":{\"@id\":\"https:\/\/techpog.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/techpog.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/techpog.com\/#organization\",\"name\":\"techpog.com\",\"url\":\"https:\/\/techpog.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techpog.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/techpog.com\/wp-content\/uploads\/2019\/01\/techpog-logosmsm.png\",\"contentUrl\":\"https:\/\/techpog.com\/wp-content\/uploads\/2019\/01\/techpog-logosmsm.png\",\"width\":156,\"height\":40,\"caption\":\"techpog.com\"},\"image\":{\"@id\":\"https:\/\/techpog.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/techpog.com\/#\/schema\/person\/d95d6b775fbb6c9d2420512ced6c7fa2\",\"name\":\"TechPog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techpog.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d1b70fe2934cd438c548da2c10fdcea0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d1b70fe2934cd438c548da2c10fdcea0?s=96&d=mm&r=g\",\"caption\":\"TechPog\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Connect to PowerShell to your Office 365 Exchange Account","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/","og_locale":"en_US","og_type":"article","og_title":"How to Connect to PowerShell to your Office 365 Exchange Account","og_description":"Managing Exchange Online with PowerShell makes a lot of daily tasks a lot easier (and quicker). Not only for your daily tasks you may need PowerShell, but some settings in Exchange Online can only be changed with PowerShell. So how do you connect to Exchange Online with PowerShell? The latest version of\u00a0Exchange Online Powershell Module, […]","og_url":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/","og_site_name":"Tech Productivity Optimization Guides","article_published_time":"2021-06-24T02:24:22+00:00","article_modified_time":"2022-10-12T17:41:39+00:00","og_image":[{"width":873,"height":502,"url":"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg","type":"image\/jpeg"}],"author":"TechPog","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TechPog","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#article","isPartOf":{"@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/"},"author":{"name":"TechPog","@id":"https:\/\/techpog.com\/#\/schema\/person\/d95d6b775fbb6c9d2420512ced6c7fa2"},"headline":"How to Connect to PowerShell to your Office 365 Exchange Account","datePublished":"2021-06-24T02:24:22+00:00","dateModified":"2022-10-12T17:41:39+00:00","mainEntityOfPage":{"@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/"},"wordCount":1161,"commentCount":0,"publisher":{"@id":"https:\/\/techpog.com\/#organization"},"image":{"@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage"},"thumbnailUrl":"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg","articleSection":["Office 365"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/","url":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/","name":"How to Connect to PowerShell to your Office 365 Exchange Account","isPartOf":{"@id":"https:\/\/techpog.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage"},"image":{"@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage"},"thumbnailUrl":"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg","datePublished":"2021-06-24T02:24:22+00:00","dateModified":"2022-10-12T17:41:39+00:00","breadcrumb":{"@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#primaryimage","url":"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg","contentUrl":"https:\/\/techpog.com\/wp-content\/uploads\/2021\/06\/Connect-to-Exchange-Online-with-PowerShell.jpg","width":873,"height":502},{"@type":"BreadcrumbList","@id":"https:\/\/techpog.com\/microsoft\/office-365\/how-to-connect-to-powershell-to-your-office-365-exchange-account\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techpog.com\/"},{"@type":"ListItem","position":2,"name":"How to Connect to PowerShell to your Office 365 Exchange Account"}]},{"@type":"WebSite","@id":"https:\/\/techpog.com\/#website","url":"https:\/\/techpog.com\/","name":"TechPOG - Tech Productivity Optimization Guides","description":"Technology News, Product Reviews, Step by Step Guides","publisher":{"@id":"https:\/\/techpog.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techpog.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techpog.com\/#organization","name":"techpog.com","url":"https:\/\/techpog.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techpog.com\/#\/schema\/logo\/image\/","url":"https:\/\/techpog.com\/wp-content\/uploads\/2019\/01\/techpog-logosmsm.png","contentUrl":"https:\/\/techpog.com\/wp-content\/uploads\/2019\/01\/techpog-logosmsm.png","width":156,"height":40,"caption":"techpog.com"},"image":{"@id":"https:\/\/techpog.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/techpog.com\/#\/schema\/person\/d95d6b775fbb6c9d2420512ced6c7fa2","name":"TechPog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techpog.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d1b70fe2934cd438c548da2c10fdcea0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d1b70fe2934cd438c548da2c10fdcea0?s=96&d=mm&r=g","caption":"TechPog"}}]}},"_links":{"self":[{"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/posts\/1196"}],"collection":[{"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/comments?post=1196"}],"version-history":[{"count":12,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/posts\/1196\/revisions"}],"predecessor-version":[{"id":1463,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/posts\/1196\/revisions\/1463"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/media\/1234"}],"wp:attachment":[{"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/media?parent=1196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/categories?post=1196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techpog.com\/wp-json\/wp\/v2\/tags?post=1196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}