Clear all

Help fix no dkim record on office365

New Member

Please I need help I want to set my dkim record on office 360 but is saying no dkim record found

Topic starter Posted : 31/03/2021 3:37 pm
Topic Tags
Hasan AboulHasan
Illustrious Member

Sometimes a newly added domain in Microsoft Office365 will not let you enable DKIM from the web user interface.

You can Enable Dkim Keys, by manually creating it.

On Your Windows PC, Open Powershell as administrator


Then run the following commands one by one:

Command 1:

$UserCredential = Get-Credential

Enter your outlook account credentials

Command 2:

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri  -Credential $UserCredential -Authentication Basic -AllowRedirection

Command 3:

Import-PSSession $Session -DisableNameChecking

Wait for the process to finish, then run the following:

New-DkimSigningConfig -DomainName “mydomain.tld” -Enabled $true

*Replace mydomain.tld with your domain

This command will succeed in generating the DKIM keys

Last Command:

Remove-PSSession $Session

Now go to your office365 admin center, and check dkim settings.

Don’t forget to copy DNS records as explained in the video tutorial.

Posted : 01/04/2021 2:35 pm
New Member

please i got this error message while running command 2


New-PSSession : [] Connecting to remote server failed with the following
error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
+ FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed

Topic starter Posted : 04/04/2021 7:40 am