Lopes Cloud

[MICROSOFT 365] – Inbox Rules

CASE 1: As an admin, you set up alerts at your tenant to warn you when someone creates an Outlook rule to forward emails externally.

CASE 2: Imagine the scenario in which a user’s password was caught by phishing and his account doesn’t have 2FA (OMG) enabled. When you discover this incident, you of course changed his password and enabled the 2FA. Sometime later, the same user receives some suspicious emails like someone still has access to his mailbox and their content.

CASE 3: User complaining that some emails are missing/not received in his mailbox

All these cases could be an inbox rule at the users’ mailbox. To check this with PowerShell do the following:

Connect to Microsoft 365 with PowerShell

Connect-MsolService

Run the command below to get the inbox rule from the mailbox. Don’t forget to change USERMAILBOX with the name of the mailbox

Get-InboxRule -Mailbox USERMAILBOX |  Select-Object  Name, Description, Enabled, Priority, ForwardTo, ForwardAsAttachmentTo, RedirectTo, DeleteMessage |  Where-Object {($.ForwardTo -ne $null) -or ($.ForwardAsAttachmentTo -ne $null) -or ($_.RedirectsTo -ne $null)}

To remove the rule:

 Get-inboxrule -Mailbox USERMAILBOX  -Identity "RULE-NAME" | Remove-InboxRule

Compartilhe:

Bruno Lopes

Bruno Lopes

Hey there! I'm Bruno Lopes a consultant based in São Paulo, Brazil. I have been working in the IT industry for over 18+ years and have worked in a variety of roles, from helpdesk to systems administration and now as a cloud consultant. I worked in all aspects of Microsoft technology from end-user computing to on-premises data centers but now I spend all my time working with Microsoft Azure and Microsoft 365, deploying and automating solutions for customers across a wide range of industries. When I'm not focusing on IT, I enjoy music and reading, spending as much time as possible with my wife and daughter.

Continue lendo...

This guide outlines setting up Azure AD SSO with AWS, streamlining access management for enterprise applications.

Issue: Facing synchronization challenges with Active Directory (AD) users in Microsoft Entra ID (formerly known as Azure AD)? You’re not alone. It’s a common scenario where AD users fail to

Change Microsoft SQL database owner with ALTER DATABASE and ALTER AUTHORIZATION commands for streamlined ownership management.

To kill a VM process follow the steps below: Open POWERSHELL as administrator: