From 289d00bd705e4306015cd8905c6bc6b230eb8664 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Tue, 23 Jan 2024 20:24:23 -0700 Subject: [PATCH] Update Scripts/Powershell/Azure/Connect to Azure AD.md --- Scripts/Powershell/Azure/Connect to Azure AD.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Scripts/Powershell/Azure/Connect to Azure AD.md b/Scripts/Powershell/Azure/Connect to Azure AD.md index 29ebb34..58b164c 100644 --- a/Scripts/Powershell/Azure/Connect to Azure AD.md +++ b/Scripts/Powershell/Azure/Connect to Azure AD.md @@ -17,10 +17,17 @@ When you run the following command, it will open a dialog box to take the userna Connect-AzureAD ``` -### Useful commands +## Useful commands The following are quick references for different fields in AzureAD. -**Check Email Aliases**: +### Check Email Aliases: ``` powershell Get-AzureADUser -ObjectId "user@domain.com" | Select -Property ProxyAddresses -``` \ No newline at end of file +``` + +!!! example "Example Output" + ``` powershell + smtp:alias@domain.com + smtp:alias@domain.onmicrosoft.com + SMTP:primaryaddress@domain.com + ``` \ No newline at end of file