How to fix running scripts is disabled on this system error in PowerShell

Source: https://www.sharepointdiary.com/2014/03/fix-for-powershell-script-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system.html

So you have installed ExchangeOnlineManagement module and try to load it but you got this error.

Cause:

This is due to the Windows PowerShell execution policy being set to prevent untrusted scripts which can affect your Windows client environment. Execution policies are security settings that determine the trust level for scripts run in PowerShell. The default execution policy is “strict” on client operating systems like Windows 10, preventing scripts from running.

Solution:

  1. Open PowerShell Console by selecting “Run as Administrator” and get the execution Policy with the command: Get-ExecutionPolicy to get the current policy applied, such as “Restricted”.
  2. Set the execution Policy with the following command: Set-ExecutionPolicy RemoteSigned
  3. Type “Y” when prompted to proceed.

How to fix “550 5.0.350” error in MS 365 Exchange Online

How to fix error 550 5.0.350

References:

Blocked and Potentially Dangerous Attachment Types

https://it.muni.cz/en/services/microsoft-outlook/navody/blocked-and-potentially-dangerous-attachment-types

Common attachment blocking scenarios for mail flow rules in Exchange Online

https://learn.microsoft.com/en-us/exchange/security-and-compliance/mail-flow-rules/common-attachment-blocking-scenarios

Email Protection Basics in Microsoft 365: Anti-malware, Safe Attachments, and Quarantine

https://techcommunity.microsoft.com/t5/microsoft-defender-for-office/email-protection-basics-in-microsoft-365-anti-malware-safe/ba-p/3791516