Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Update user mobile numbers

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
antonioking
Asked:
antonioking
1 Solution
 
QlemoC++ DeveloperCommented:
get-aduser -filter * -properties MobilePhone | ? {! $_.MobilePhone } | set-aduser -MobilePhone 'n/a'

Open in new window

0
 
antoniokingAuthor Commented:
Thank you!
Worked perfectly
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now