How to clear AD Users Mobile number under the Telephone tab using PowerShell

Shamyog 1 Reputation point
2022-01-15T06:21:55.44+00:00

Hello,

We have multiple users in AD who has a mobile number assigned under the Telephone tab; now we want to clear the Mobile number for all user.

Is there a PowerShell script that I can use?

  1. Get all users list from AD
  2. Remove listed users Mobile number

Your help would be much appreciated.

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2022-01-15T16:01:54.373+00:00

    Do your users (through OutLook, presumably) have permission to modify their own properties, or is this data being added to the AD by your administration staff? If it's the users then you're going to have to repeat the process again and again until you remove their ability to modify their properties.

    This should remove the information from an AD user:

    Set-ADUser -Identity user_identity -Clear mobile
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.