Skip to content

Commit 9648609

Browse files
committed
removed AD PS
1 parent 88e0019 commit 9648609

File tree

1 file changed

+2
-41
lines changed

1 file changed

+2
-41
lines changed

articles/active-directory/authentication/howto-sspr-authenticationdata.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: active-directory
66
ms.service: active-directory
77
ms.subservice: authentication
88
ms.topic: how-to
9-
ms.date: 09/14/2023
9+
ms.date: 09/21/2023
1010

1111
ms.author: justinha
1212
author: justinha
@@ -79,8 +79,7 @@ The following fields can be set through PowerShell:
7979
* *Office phone*
8080
* Can only be set if you're not synchronizing with an on-premises directory.
8181

82-
> [!IMPORTANT]
83-
> Azure AD PowerShell is planned for deprecation. You can start using [Microsoft Graph PowerShell](/powershell/microsoftgraph/overview) to interact with Microsoft Entra ID as you would in Azure AD PowerShell, or use the [Microsoft Graph REST API for managing authentication methods](/graph/api/resources/authenticationmethods-overview).
82+
You can use [Microsoft Graph PowerShell](/powershell/microsoftgraph/overview) to interact with Microsoft Entra ID, or use the [Microsoft Graph REST API for managing authentication methods](/graph/api/resources/authenticationmethods-overview).
8483

8584
### Use Microsoft Graph PowerShell
8685

@@ -121,44 +120,6 @@ Get-MgUser -UserId '[email protected]' | select businessPhones
121120
Get-MgUser -UserId '[email protected]' | Select businessPhones, mobilePhone, otherMails | Format-Table
122121
```
123122

124-
### Use Azure AD PowerShell
125-
126-
To get started, [download and install the Microsoft Entra version 2 PowerShell module](/powershell/module/azuread/).
127-
128-
To quickly install from recent versions of PowerShell that support `Install-Module`, run the following commands. The first line checks to see if the module is already installed:
129-
130-
```PowerShell
131-
Get-Module AzureAD
132-
Install-Module AzureAD
133-
Connect-AzureAD
134-
```
135-
136-
After the module is installed, use the following steps to configure each field.
137-
138-
#### Set the authentication data with Azure AD PowerShell version 2
139-
140-
```PowerShell
141-
Connect-AzureAD
142-
143-
Set-AzureADUser -ObjectId [email protected] -OtherMails @("[email protected]")
144-
Set-AzureADUser -ObjectId [email protected] -Mobile "+1 4251234567"
145-
Set-AzureADUser -ObjectId [email protected] -TelephoneNumber "+1 4252345678"
146-
147-
Set-AzureADUser -ObjectId [email protected] -OtherMails @("[email protected]") -Mobile "+1 4251234567" -TelephoneNumber "+1 4252345678"
148-
```
149-
150-
#### Read the authentication data with Azure AD PowerShell version 2
151-
152-
```PowerShell
153-
Connect-AzureAD
154-
155-
Get-AzureADUser -ObjectID [email protected] | select otherMails
156-
Get-AzureADUser -ObjectID [email protected] | select Mobile
157-
Get-AzureADUser -ObjectID [email protected] | select TelephoneNumber
158-
159-
Get-AzureADUser | select DisplayName,UserPrincipalName,otherMails,Mobile,TelephoneNumber | Format-Table
160-
```
161-
162123
## Next steps
163124

164125
Once authentication contact information is pre-populated for users, complete the following tutorial to enable self-service password reset:

0 commit comments

Comments
 (0)