check outlook blocked sender from online powerShell

 

1.     Admins can run this Commands to check blocked sender from online PowerShell -

 

(Get-MailboxJunkEmailConfiguration as.h@xyz.com).BlockedSendersAndDomains

 

2.     Command to remove blocked sender -

 

Set-MailboxJunkEmailConfiguration -Identity "user@domain.com" -BlockedSendersAndDomains @{Remove="example@domain.com"}

Enable/Set on-prem user as remote mailbox o365

Enable-RemoteMailbox -identity user -RemoteRoutingAddress user@xyz.mail.onmicrosoft.com


Enable-RemoteMailbox -identity user -Archive 


Bulk script -

foreach($i in get-content C:\New_folder\123.txt){Enable-RemoteMailbox -Identity $i@xyz.com -RemoteRoutingAddress $i@xyz.mail.onmicrosoft.com}


Get-Content "C:\New_folder\123.txt" | Enable-RemoteMailbox -Archive

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