I'm a bit confused with that function. To download the picture locally on my machine, no issues. But if i try to store the result in a variable i have an issue.
Doing something like: "$var = Get-AzureADUserThumbnailPhoto -ObjectId MyUserGuidHere" and i try to print $var, i have an empty object with "DontCare" as value for one of the attribute. Same result using the -OutVariable parameter.