SOLVED

how to get room mailbox telephones properties

Highlighted
Contributor

Hello ,

 ihave a room mailbox in attached files and i need to export theses informations ( téléphones and notes ) from powershell .how?

 

Regards

 

 

 

 

 

1 Reply
Highlighted
Best Response confirmed by ali ali (Contributor)
Solution

Hi,

 

Try with something like this to get a list with all RoomMailboxes with their Home Phone number and Notes when using Exchange Online Powershell module and Azure AD module.

 

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'RoomMailbox')} | Get-User | fl DisplayName, HomePhone, Notes

 

If you want to get it from Active Directory you could try.

get-aduser -filter * -SearchBase "OU=Users,OU=Countries,DC=domain,DC=ad" -Properties DisplayName, homePhone, Info | ft DisplayName, homePhone, Info