Update Scripts/Powershell/Azure/Connect to Azure AD.md

This commit is contained in:
Nicole Rappe
2024-01-23 20:24:23 -07:00
parent 580f716e78
commit 289d00bd70

View File

@ -17,10 +17,17 @@ When you run the following command, it will open a dialog box to take the userna
Connect-AzureAD Connect-AzureAD
``` ```
### Useful commands ## Useful commands
The following are quick references for different fields in AzureAD. The following are quick references for different fields in AzureAD.
**Check Email Aliases**: ### Check Email Aliases:
``` powershell ``` powershell
Get-AzureADUser -ObjectId "user@domain.com" | Select -Property ProxyAddresses Get-AzureADUser -ObjectId "user@domain.com" | Select -Property ProxyAddresses
``` ```
!!! example "Example Output"
``` powershell
smtp:alias@domain.com
smtp:alias@domain.onmicrosoft.com
SMTP:primaryaddress@domain.com
```