How can I use Active Directory Powershell or Exchange Management Shell to list all users and they're mobile numbers?

  • You should always post the research you have performed as well as code examples of what your trying. – Nick Young Jan 12 '16 at 3:24

If you have the Active Directory PowerShell module from RSAT installed, you can use Get-ADUser cmdlet to retrieve all users and the value of their mobile attribute, like this:

Get-ADUser -Filter * -Properties mobile

Get-ADUser retrieves a number of attributes by default, if you don't need those, use Select-Object to pick out the ones you need:

Get-ADUser -Filter * -Properties mobile | Select-Object Name,Mobile
  • Thanks but I also get a lot of unwanted fields using that. I just want 2 columns, Name | Mobile and the users and mobiles listed underneath (similar output to EMS). – user5603796 Jan 7 '16 at 10:19
  • 1
    Use Select-Object (updated answer) – Mathias R. Jessen Jan 7 '16 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.