Solved

Update user mobile numbers

Posted on 2014-11-10
2
125 Views
Last Modified: 2014-11-10
Please could somebody assist me in mass updating all mobile numbers on user accounts in our AD to "n/a" where the field is blank.

Thanks in advance!
0
Comment
Question by:antonioking
2 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40433111
get-aduser -filter * -properties MobilePhone | ? {! $_.MobilePhone } | set-aduser -MobilePhone 'n/a'

Open in new window

0
 

Author Closing Comment

by:antonioking
ID: 40433193
Thank you!
Worked perfectly
0

Join & Write a Comment

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now