Active Directory/Exchange list users and mobile numbers

7,384

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
Share:
7,384

Related videos on Youtube

user5603796
Author by

user5603796

Updated on September 18, 2022

Comments

  • user5603796
    user5603796 over 1 year

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

    • Nick Young
      Nick Young over 8 years
      You should always post the research you have performed as well as code examples of what your trying.
  • user5603796
    user5603796 over 8 years
    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).
  • Mathias R. Jessen
    Mathias R. Jessen over 8 years
    Use Select-Object (updated answer)