Office 365: Comment exporter tous les comptes Azure Active Directory ayant une license via PowerShell
Voici un script PowerShell permettant de sortir un fichier CSV ayant tous les comptes utilisateurs de votre tenant avec les propriétés suivantes (vous pouvez l’adapter selon votre besoin): UserPrincipalName: Tenant login DisplayName: User Display Name AADCountryName: Countryname defined in Azure AD UserLocationCountryName: Country name of the AAD property UsageLocation UsageLocationCountryCode: ISO Format of the AAD property UsageLocation [string]$username = "YourAdminAccount@YourTenant.onmicrosoft.com" [string]$PwdTXTPath = "D:\SECUREDPWD\ExportedPWD-$($username).txt" $isoCountries = @{ "AF" = "Afghanistan"; "AX" = "Aland Islands"; "AL" = "Albania"; "DZ" = "Algeria"; "AS" = "American Samoa"; "AD" = "Andorra"; "AO" = "Angola"; "AI" = "Anguilla"; "AQ" = "Ant...