Relative Content

Tag Archive for powershellazure-active-directory

Non-interactive way to authenticate to Azure AD using AADInternals?

I’m attempting to use the AADInternals toolkit to simplify the process of generating an Azure AD bulk enrollment provisioning package. However, it seems as if the provided AADInternals documentation only outlines interactive methods of authentication. Being that I’m trying to automate this process through a Powershell script, does anyone know if there is a way to authenticate the AADInternals toolset non-interactively, say through application-based authentication using Microsoft Graph? I haven’t been able to determine this myself yet, but I was hoping someone here might have used AADInternals themselves and accomplished this. Thanks!

PowerShell – AzureAD Report SAM Account Name Pull

I am using the below code in PowerShell to create a CSV file from Azure AD which lists our North America users and some of their account properties. The current code works great. However, I am trying to add an additional column/property to the report to pull the SAM Account Name

PowerShell – AzureAD Report Export

I was able to find this AzureAD script below which can help me export Azure users into a CSV file using Powershell. I was hoping if someone can help me adjust it, so that it is also filtering by Country or Region in Azure profile = United States or Canada. I would also like to replace the License object with City if possible: