{"id":1051,"date":"2021-05-19T10:01:51","date_gmt":"2021-05-19T10:01:51","guid":{"rendered":"https:\/\/prodmarc.com\/knowledge\/?p=1051"},"modified":"2021-05-19T10:01:51","modified_gmt":"2021-05-19T10:01:51","slug":"manually-upgrade-your-dkim-keys-in-microsoft-office-365-exchange-online","status":"publish","type":"post","link":"https:\/\/knowledge.progist.net\/index.php\/2021\/05\/19\/manually-upgrade-your-dkim-keys-in-microsoft-office-365-exchange-online\/","title":{"rendered":"Manually Upgrade your DKIM keys in Microsoft Office 365 Exchange Online"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1051\" class=\"elementor elementor-1051\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8939cf7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8939cf7\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3e2d799\" data-id=\"3e2d799\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ee5bdcb elementor-widget elementor-widget-text-editor\" data-id=\"ee5bdcb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong><u>Connect to Microsoft Office 365 PowerShell<\/u> :<\/strong><\/p><p>For upgrading DKIM keys in Microsoft Office 365 Exchange Online you need to first connect to Microsoft Office 365 PowerShell.<\/p><p>The Microsoft 365 work or school account that you use must be a member of a Microsoft 365 admin role. This is a requirement for PowerShell for Microsoft 365.<\/p><p>PowerShell must be configured to run signed scripts.<\/p><ol><li>Run the following command in an elevated PowerShell session (a PowerShell session that you Run as administrator).<\/li><\/ol><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Set-ExecutionPolicy RemoteSigned<\/strong><\/p><ol start=\"2\"><li>Run this command and enter your Microsoft 365 work or school account credentials.<\/li><\/ol><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>$credential = Get-Credential<\/strong><\/p><ol start=\"3\"><li>Run this command to connect to Azure AD by using the Azure Active Directory PowerShell for Graph module.<\/li><\/ol><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Connect-AzureAD -Credential $credential<\/strong><\/p><ol start=\"4\"><li>Run this command to connect to Exchange Online.<\/li><\/ol><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <strong>Import-Module ExchangeOnlineManagement<\/strong><\/p><p><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Connect-ExchangeOnline -Credential $credential -ShowProgress $true<\/strong><\/p><p>Now you have connected to the Exchange Online PowerShell, refer to below steps for upgrading DKIM keys from 1024-bit key to 2048-bit.<\/p><ul><li><strong><u>Upgrading existing DKIM key<\/u><\/strong>:<\/li><\/ul><ol><li style=\"list-style-type: none;\"><ol><li>Run the following command:<\/li><\/ol><\/li><\/ol><p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Rotate-DkimSigningConfig -KeySize 2048 -Identity {Guid of the existing\u00a0Signing Config}<\/strong><\/p><ul><li><strong><u>Implementing New DKIM key<\/u><\/strong>:<\/li><\/ul><ol><li style=\"list-style-type: none;\"><ol><li>Run the following command:<\/li><\/ol><\/li><\/ol><p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 New-DkimSigningConfig -DomainName {Domain for which config is to be created} &#8211; KeySize 2048 -Enabled $True<\/strong><\/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<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Connect to Microsoft Office 365 PowerShell : For upgrading DKIM keys in Microsoft Office 365 Exchange Online you need to first connect to Microsoft Office 365 PowerShell. The Microsoft 365<\/p>\n<p><a href=\"https:\/\/knowledge.progist.net\/index.php\/2021\/05\/19\/manually-upgrade-your-dkim-keys-in-microsoft-office-365-exchange-online\/\" class=\"more-link\">Continue Reading<span class=\"screen-reader-text\">Manually Upgrade your DKIM keys in Microsoft Office 365 Exchange Online<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","om_disable_all_campaigns":false,"footnotes":""},"categories":[6],"tags":[39,49,50,56,93],"class_list":["post-1051","post","type-post","status-publish","format-standard","hentry","category-dkim","tag-dkim","tag-dkim-key","tag-dkim-key-in-o365-exchange-online","tag-dmarc","tag-microsoft-office-365"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/1051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/comments?post=1051"}],"version-history":[{"count":0,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/1051\/revisions"}],"wp:attachment":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/media?parent=1051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/categories?post=1051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/tags?post=1051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}