EntraID Module
A new EntraID module is released. This version is built on top the MS Graph. It works with Powershell 5 and Powershell 7.
Install module:
Install-Module Microsoft.Entra -Force -AllowClobber
Or if need no admin rights; install to current user:
Install-Module Microsoft.Entra -Scope CurrentUser -Force -AllowClobber
Connect to Entra:
Connect-Entra -Scopes 'User.Read.All'
Now let's see what commands are available:
Get-Command -Module Microsoft.Entra*
Now let's see what info we can gather:
Get-Command -Module Microsoft.Entra* -verb get
get-entradomain
get-entraaccountsku |select activeunits,consumedunits,serviceplans,skupartnumber |ft
get-entrauser
get-entragroup |sort displayname
get-entrausergroup -userid
get-entrauserrole -userid
get-entrauserregistereddevice -userid
get-entrauserregistereddevice -userid
#Use the following to see the property members:
#get-entrauserregistereddevice -userid
(get-entrauserregistereddevice -userid
(get-entrauserregistereddevice -userid