Jan 16 2022 08:54 PM
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?
Get all users list from AD.
Remove listed users Mobile number
Your help would be much appreciated.
Jan 17 2022 04:23 AM
Jan 19 2022 04:30 AM
Why such difficulties?
simple command:
get-aduser -filter * | set-aduser -mobile $null
or only enabled user:
get-aduser -filter {Enabled -eq "True"} | set-aduser -mobile $null