Entries by Elliot Munro

, ,

Export a list of locations that Office 365 users are logging in from

Export a list of locations that Office 365 users are logging in from Many companies will have an idea of the locations that they expect users to be accessing their data from, so it’s important to determine whether any users are logging in from unexpected places. User IP addresses are stored in the Office 365 […]

, ,

Block Inbox Rules from forwarding mail externally in Office 365 using PowerShell

Block Inbox Rules from forwarding mail externally in Office 365 using PowerShell Auto-forwarding inbox rules can be used by hackers and rogue employees to exfiltrate data from your organisation. Microsoft recommends that you disable this functionality by default using an Exchange transport rule. This article will show you how to script the creation of this […]

, ,

Find all Inbox Rules that forward mail externally from Office 365 with PowerShell

Find all Inbox Rules that forward mail externally from Office 365 using PowerShell It’s a good idea to be aware of any mailbox level Inbox Rules that automatically forward mail outside of your organisation. Microsoft recommends that these types of rules be disabled by admins by default. Stopping mail from being auto-forwarded even counts towards […]

,

Automate creation of Azure AD Applications to access the Microsoft Graph in all customer tenants

Automate creation of Azure AD Applications to access the Microsoft Graph in all customer tenants Or: How to report on your customers Office 365 secure scores using PowerShell I’m pretty excited about this one. Using this method, you can automate the creation and consent of Azure AD Applications via PowerShell, and use them to take […]

Automate API calls against the Microsoft Graph using PowerShell and Azure Active Directory applications

Automate API calls against the Microsoft Graph using PowerShell and Azure Active Directory Applications   In this article, we’ll demonstrate how to script the creation and consent of an Azure AD Application. Our sample app will connect to the Microsoft Graph beta endpoints. It’ll collect the Office 365 Secure Score report for your tenant and […]

Export a list of Office 365 users and their licenses in all customer tenants with delegated administration

Export a list of Office 365 users and their licenses in all customer tenants with delegated administration Here’s a script that reports on all licensed Office 365 users in all of your customer tenants, and exports their details and their license info to a CSV file. It uses your Office 365 delegated admin credentials to […]