Manually migrate Distribution list from on-prem to cloud (Workaround)


Ø Delete Distribution List from On-Prem Exchange and recreate it in O365 

Ø Create an account in On-Prem AD with same display name

Ø Enable that account in on-premise Exchange as Mail-User and assign primary SMTP email address as oceanspray.mail.onmicrosoft.com

 Enable-mailuser  -identity Test_Onpremise2 -ExternalEmailAddress Test_OnPremise2@xyz.mail.onmicrosoft.com


Ø Open that account in on-premise Exchange and add new email address

Test_OnPremise2@xyz.onmicrosoft.com

 

Ø In O365 open properties of that DL and add new email address

Test_OnPremise2@xyz.mail.onmicrosoft.com

Issue/Error - This feature has been disabled by your administrator error in Office

 

This feature has been disabled by your administrator error in Office

 

1.       Process

When you try to perform certain actions in Microsoft Office O365, 2019, 2016, or 2013 applications, you receive the following error message: “This feature has been disabled by your administrator.”

The actions that trigger this error message may include the following:

·       On the File menu, you click Account or Office Account, and then you click Sign In.

·       On the File menu, you click Share, and then you click Present Online.

·       On Microsoft SharePoint Server or in OneDrive for Business, you click Sync Now.

In Office 2013, Office 2016, and Office 2019, this error affects connected experience. In Office 365 ProPlus, this error affects Office licensing and connected experience.

2.        Steps

Before proceeding to follow these steps take registry backup by following below steps:

1.      From the Start menu, type regedit.exe in the search box, and then press Enter.

2.      In Registry Editor, locate & click the registry key or subkey that you want to back up.

3.      Click File > Export.

4.      In the Export Registry File dialog box, select the location to which you want to save the backup copy, and then type a name for the backup file in the File name field.

5.      Click Save.

 

          To resolve this issue, follow these steps to modify the registry:

6.      Exit Microsoft Outlook.

7.      Start Registry Editor.

8.      In Registry Editor, locate and then click the following subkey:

HKEY_CURRENT_USER\Software\Microsoft\Office\xx.0\Common\Internet

Note: Replace xx with:

·       15 for Office 2013

·       16 for Office 2016

·       17 for Office 2019

·       18 for Office 2021 / Microsoft 365

 

9.      Locate and then double-click the following value: UseOnlineContent.

Note: if key is missing then please create it manually.

 



·       In the Value Data box, type 2, and then click OK.

·       Locate and then click the following subkey:

HKEY_CURRENT_USER\Software\Microsoft\Office\xx.0\Common\SignIn

 Note: If key is missing then please create it manually.

 

·       Locate and then double-click the following value: SignInOptions.

·       In the Value Data box, type 0, and then click OK.

·       Exit Registry Editor.

More Information

The UseOnlineContent setting controls users' access to the Office online features. This setting can be configured by using the following values:

  • 0 = Do not allow Office to connect to the Internet. Office applications do not connect to the Internet to access online services or to download the latest online content from Office.com. Connected features of Office are disabled.
  • 2 = Allow Office to connect to the Internet. Office applications use online services and download the latest online content from Office.com when users’ computers are connected to the Internet. Connected features of Office are enabled. This option enforces the default configuration.

The SignInOptions setting controls whether users can provide credentials to Office by using either their Windows Live ID or the user ID that was assigned by their organization (Org ID) for accessing Office 365. This setting can be configured by using the following values:

  • 0 = Both IDs allowed
  • 1 = Microsoft Account only
  • 2 = Org ID only
  • 3 = Users cannot sign in by using either ID

 

Support Documentation:

https://docs.microsoft.com/en-us/office365/troubleshoot/administration/office-feature-disabled

Provide calendar access using powershell

 

Steps to provide calendar access

 

1.      Login to Exchange Online PowerShell

 

Run below command to grant calendar access as editor: -

Add-MailboxFolderPermission -Identity user1@xyz.com:\calendar -user user2@xyz.com -AccessRights Editor

 

 

Run below command to grant calendar access as editor with delegate flag: -

Set-Mailbox user1@xyz.com -GrantSendOnBehalfTo  user2@xyz.com

 

Add-MailboxFolderPermission user1@xyz.com:\calendar -User user2@xyz.com -AccessRights Editor -SharingPermissionFlags Delegate

 

 

Run below command to change existing calendar access: -

Set-MailboxFolderPermission -Identity user1@xyz.com:\calendar -user user2@xyz.com -AccessRights Editor

Test Send SMTP email using Telnet

Commands to Test SMTP routing: 

 

·       Telnet into the mail backbone using TCP port 25 : telnet 10.100.201.17 25  

·       Start communication by this command: HELO sp011.xyz.com 

·       Type the following command to tell the receiving SMTP server who the message is

from: mail from: user@xyz.com 

                  response should be - 250 2.1. user@xyz.com .... Sender OK 

 

·       Type the following command to tell the receiving SMTP server whom the message is to. Use a valid recipient SMTP address in the domain that you are sending to. 

 

rcpt touser2@xyz.com  <enter>   

                   response should be - 250 2.1.5  user2@xyz.com  

 

·       Type this command to tell the SMTP server that you are ready to send data: 

data<enter> 

        response should be - 354 Start mail input; end with <CRLF>.<CRLF> 

This is a test from SP011 

             Queued mail for delivery 

 

·       Close the connection by typing the following command: QUIT 

 

·       Check if email is received or not. 

Email Purge

 

Steps for mail purge


STEP 1: CREATING THE CONTENT SEARCH RULE

1.      Head over to https://purview.microsoft.com/ediscovery

2.      Click Ediscovery => Content Search and click the plus icon to create a “Create a Search”.

3.      Give the search a name and a description if desired and click “Create

4.      Condition Builder – WHERE WE DEFINE WHAT EMAIL(S) WE WANT TO DELETE

5.      In the “Condition Builder” section click the “Add conditions” button (you may have to scroll down)

6.      Add the condition(s) relevant to what you are searching for. In my case emails which contain the sender “test@xyz.com” and that were received after a certain date.

 

Source SECTION – WE ONLY WANT TO SEARCH EXCHANGE

1.      Under the Source section select “Add tenant-wide sources”.

2.      Only enable the Mailboxes section.

 

3.      Click Save.

 

FINISHING THE RULE

a)     Click “Run Query”.

b)     At this point the search will run. It is very important you take a good look to confirm only the email(s) you want to delete are returned.

 

 

 

 

STEP 2: DELETING THE MATCHED EMAILS VIA POWERSHELL

 

1.      Connect to Powershell using command “Connect-IPPSSession

2.      Deleting the emails matching the content search rule

New-ComplianceSearchAction -SearchName "RuleName" -Purge -PurgeType SoftDelete

 

 

*Rule name will be the name that we have created during content search.

 

STEP 3: CHECKING THE STATUS

1.      Using the command below, you can get a summary of the status of the action.

Get-ComplianceSearchAction

 

2.      Or you can get a detailed output for the action using the below.

Get-ComplianceSearchAction -Identity "RuleName_Purge" | Format-List

 


Purge command --

New-ComplianceSearchAction -SearchName "Mail purge" -Purge -PurgeType SoftDelete


Check status ---

Get-ComplianceSearchAction -Identity "Mail purge"