Forum Discussion
stamang
Jan 17, 2022Copper Contributor
How to clear AD Users Mobile and Home phone number under the Telephone tab using PowerShell
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? G...
Jan 17, 2022
$users=get-aduser -filter * -Resultsize 100000
foreach ($user in $users) {
set-aduser $user -clear mobile
}
foreach ($user in $users) {
set-aduser $user -clear mobile
}