Link to home
Start Free TrialLog in
Avatar of Thomas Brooks
Thomas BrooksFlag for United States of America

asked on

Powershell get-msolconact -all does not return ProxyAddresses data

When connected via (Windows Azure Active Directory Module for Windows PowerShell)
and
$O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection -verbose
$importcmd = Import-PSSession $O365Session -verbose
$importcmd.ExportedFunctions.Count
Connect-MsolService -Credential $O365Cred
Add-pssnapin Microsoft.Adfs.Powershell

When I run Get-MSOLcontact -all against my O365 contacts, it returns the field Proxyaddresses with nothing in it.

If I execute Get-MSOLcontact -objectid <objectid> it DOES return the ProxyAddresses. What is going on?
SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thomas Brooks

ASKER

Original Comment offered clues to accepted solution but did not give solution.  Commenter gave a different solution.