Cleanup M365 Azure AD groups via PowerShell

Clearing old or orphaned groups is also important in cloud environments, especially in larger structures. So an easy way is to check if there are disabled users in Azure AD groups. Of course there can be also some license savings in M365 if disabled users are removed. This use case I wrote a small PowerShell …

AzureAD PowerShell Check if user is member of group

Today I want to show a small function which just checks whether an user is member of a group or not. This may be helpful if you want to check user inside a azure ad powershell script. Normally the script (if all parameters are set correctly) the script return TRUE or FALSE. Whats the ability …

Check if Azure AD Users exists PowerShell function

When scripting with cloud users in AzureAD some people might ask how to check if an Azure AD user is available or not. I also had to challenge this scenario while scripting for a customer. After this I thought this is something many people may need. So here is my solution with some explanation to …

Handle timeouts while scripting with the microsoft cloud (or anywhere else)

Hi there, if you found this article maybe you are struggling slowness of the microsoft cloud (or some other products) and your script fails because it does not find the newly created object. Yeah that’s a big issue especially in the wonderful cloud, and if you want to automate tasks. So I invested some time …

O365 PowerShell Connector with encypted password files

During my daily work I need to connect to Office 365 powershell from time to time, so I also want to automate this task to safe time and also because I’m a lazy guy. Befor using my O365 connector you should read my other articles about encrypting passwords to secure string. See my prolog working …