Update Scripts/Powershell/Azure/Connect to Azure AD.md
This commit is contained in:
@ -16,19 +16,3 @@ When you run the following command, it will open a dialog box to take the userna
|
|||||||
``` powershell
|
``` powershell
|
||||||
Connect-AzureAD
|
Connect-AzureAD
|
||||||
```
|
```
|
||||||
|
|
||||||
## Useful commands
|
|
||||||
The following are quick references for different fields in AzureAD.
|
|
||||||
|
|
||||||
### Check Email Aliases:
|
|
||||||
The uppercase `SMTP` address is the primary address, while lowercase `smtp` are aliases. You can find the value in active directory in **"User > Attribute Editor > proxyAddresses"**.
|
|
||||||
``` powershell
|
|
||||||
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
|
|
||||||
```
|
|
Reference in New Issue
Block a user