Category Archives: PowerShell

Reporting on group membership for Azure AD devices

Now that we have device-based licensing for Office available to enterprise customers as well, adding device objects to Azure AD groups will become more common. The need to report on group membership for device objects will also arise. Neither the … Continue reading

Posted in Azure AD, Graph API, Microsoft 365, Office 365, PowerShell | Leave a comment

Toggle Azure AD Security Defaults on or off programmatically

Continuing our exploration of the different policies objects exposed under the /policies Graph API endpoint, in this article we will discuss how to get the current state of the Security defaults feature, and change it as needed. But first, a … Continue reading

Posted in Azure AD, Graph API, Microsoft 365, Office 365, PowerShell | 1 Comment

Block MSOnline PowerShell access for your tenant

One of the recent additions to the AzureAD (Preview) PowerShell module and the corresponding Graph API endpoints is the ability to configure “policy” objects within the tenant. In all fairness, “policies” aren’t something new, as they have been used for … Continue reading

Posted in Azure AD, Graph API, Microsoft 365, Office 365, PowerShell | 1 Comment

My collection of useful (short) PowerShell code samples (gists)

I’ve been doing some cleanup of my PowerShell scripts and code samples, removing outdated examples, updating code to latest versions where needed, etc. As part of the process, I’ve uploaded few smaller bits of code as gists over at GitHub, … Continue reading

Posted in Azure AD, Exchange Online, Microsoft 365, Office 365, PowerShell | Leave a comment

New versions of the Azure AD PowerShell modules available

A week ago, Microsoft released new versions of the Azure AD (2.0.2.104) and Azure AD Preview modules (2.0.2.105). As usual, no release notes were provided, so I did a quick comparison of the cmdlets available in the new releases, as … Continue reading

Posted in Azure AD, Office 365, PowerShell | Leave a comment