Get AzureAD Guest Users LastLogin for stale accounts PowerShell

Which property comes closest to the LastLogin property? LastLogin is an attribute known from Active Directory, but this property is not present in AzureAD. Property RefreshTokensValidFromDateTime is closest to the LastLogin property. This property determines how long the token is valid for the last Login and when the local token must renew. Unfortunately this is … Continue reading Get AzureAD Guest Users LastLogin for stale accounts PowerShell

How to get AzureAD Group Members nested groups in PowerShell

Why would we put groups in groups? Groups in groups is used by enterprise companies that have main groups for, for example, Group based Licensing in AzureAD. And there are many more examples to mention.The disadvantage of groups in groups is that at a certain point you no longer know whether someone is in the … Continue reading How to get AzureAD Group Members nested groups in PowerShell

Is it listed? From Domain, to email, and even IP addresses including the ranges Exchange Online

Is what listed? With the PowerShell script on Github you can find a domain name, email address, and IP address in Exchange Online that is located in one of the following places: Transport rules Anti Spam Policies Anti-Phishing Policies Inbound Connectors Outbound Connectors Connection Filter Policies NEW: Inbox Rules (Briefly explained in Various Choices). The … Continue reading Is it listed? From Domain, to email, and even IP addresses including the ranges Exchange Online

Disable PowerShell for users in Exchange by Bas Wijdenes

Yeah, regular users can run PowerShell commands on their own Mailbox. I recently found out that PowerShell is enabled by default for all users in Exchange Online including the normal user mailbox. There was a user who had been hacked, and the hacker had placed a forward in the mailbox via PowerShell, but well about … Continue reading Disable PowerShell for users in Exchange by Bas Wijdenes

See which shared mailboxes are above 50GB and need a license in Exchange Online with PowerShell

shared mailboxes receive a maximum of 50GB when no license is assigned. Microsoft has always said that a shared mailbox can be up to 50GB unless you have assigned a license.This is not the case in most tenants and this has always been tolerated by Microsoft.Now they are really going to force this by capping … Continue reading See which shared mailboxes are above 50GB and need a license in Exchange Online with PowerShell