Enumeration
Enumeration
Install AADInternals
Set-ExecutionPolicy UnrestrictedInstall the module
Install-Module AADInternalsImport the module
Import-Module AADInternalsGet tenant name, authentication, brand name (usually same as directory name) and domain name
Get-AADIntLoginInformation -UserName unsecure@yourdomain.comGet tenant ID
Get-AADIntTenantID -Domain yourdomain.com Get tenant domains
Get-AADIntTenantDomains -Domain yourdomain.com Get all the information
Invoke-AADIntReconAsOutsider -DomainName ROAD Tool
ROADtools is a framework to interact with Azure AD. It consists of a library (roadlib) with common components, the ROADrecon Azure AD exploration tool and the ROADtools Token eXchange (roadtx) tool.
install it via pip
later
AzureAD Module
AzureAD is a PowerShell module from Microsoft for managing Azure AD.
Can be used only to interact with Azure AD, no access to Azure resources.
Get the current session state
Get details of the current tenant
AzureAD Users
Enumerate all users
Enumerate a specific user
Search for users who contain the word "admin" in their Display name:
List all the attributes for a user
Search attributes for all users that contain the string "password":
All users who are synced from on-prem
All users who are from Azure AD
Objects created by any user (use -ObjectIdfor a specific user)
Objects owned by a specific user
AzureAD Groups
List all Groups
Enumerate a specific group
Search for a groupbased on string in first characters of DisplayName(wildcard not supported)
To search for groups which contain the word "admin" in their name:
Get Groups that allow Dynamic membership (Note the cmdlet name)
All groups that are synced from on-prem(note that security groups are not synced)
All groups that are from Azure AD
Get members of a group
Get groups and roles where the specified user is a member
AzureAD Role
Get all available role templates
Get all roles
Enumerate users to whom roles are assigned
Enumerating Admin Roles in AzureAD
AzureAD Devices
Get all Azure joined and registered devices
Get the device configuration object (note the RegistrationQuotain the output)
List Registered owners of all the devices
List Registered users of all the devices
List devices owned by a user
List devices registered by a user
List devices managed using Intune
Last updated