Hello, @IniobongNkanga-8038,
Welcome to the Microsoft Q&A platform!
Based on your description, I understand that you want to learn how to use PowerShell to remove phone numbers from the contact information of all users on Outlook and add phone numbers for multiple users in Microsoft Entra.
After testing, you can realize deleting the phone numbers of all contacts at once with the following command in PowerShell.
1.Use the following command in PowerShell to get the current mailbox contact name and phone number.
Get-Contact | Select-Object DisplayName, Phone
2.Use the following command in PowerShell to get all contacts traversed and then delete their phone numbers.
$contacts = Get-Contact -ResultSize Unlimited
foreach ($contact in $contacts) {
Set-Contact -Identity $contact.Identity -Phone ""
}
- Use the following command in PowerShell to confirm that the phone numbers of all contacts have all been deleted.
Get-Contact | Select-Object DisplayName, Phone
Regarding Microsoft Entra, to better address your question, I will add a relevant tag to your post. Thank you for your support and understanding.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Best Wishes,
Alex Zhang