Azuread PowerShell module version is

Azureadpreview PowerShell module version is

Note: the preview module is the most recent and contain new cmdlet like Get-AzureADDirectorySetting or Set-AzureADDirectorySetting


Getting started with PowerShell for O365:

Azure AD PowerShell module:

Powershell cmdlets reference:


How to install the module to access Office 365/Azure AD:

The PowerShellGet module requires PowerShell 3.0 or newer. Therefore, PowerShellGet requires one of the following operating systems:

  • Windows 10
  • Windows 8.1 Pro
  • Windows 8.1 Enterprise
  • Windows 7 SP1
  • Windows Server 2016 TP5
  • Windows Server 2012 R2
  • Windows Server 2008 R2 SP1

PowerShellGet also requires .NET Framework 4.5 or above. You can install .NET Framework 4.5 or above from here.

Then from a PowerShell prompt enter:

install-module AzureAD


import-module AzureAD




example:  get-azureaduser -filter “displayname eq ‘firstname lastname'” | select displayname,mail

To list all user attributes:
get-msoluser -userprincipalname | select *

With AzureAD cmdlets (need module AzureAD):
get-azureaduser -filter “displayname eq ‘firstname lastname'” | select *