Home

Store Get-AzureADUserThumbnailPhoto result in a variable (powershell)

%3CLINGO-SUB%20id%3D%22lingo-sub-183520%22%20slang%3D%22en-US%22%3EStore%20Get-AzureADUserThumbnailPhoto%20result%20in%20a%20variable%20(powershell)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183520%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI'm%20a%20bit%20confused%20with%20that%20function.%20To%20download%20the%20picture%20locally%20on%20my%20machine%2C%20no%20issues.%20But%20if%20i%20try%20to%20store%20the%20result%20in%20a%20variable%20i%20have%20an%20issue.%3C%2FP%3E%3CP%3EDoing%20something%20like%3A%20%22%24var%20%3D%20Get-AzureADUserThumbnailPhoto%20-ObjectId%20MyUserGuidHere%22%20and%20i%20try%20to%20print%20%24var%2C%20i%20have%20an%20empty%20object%20with%20%22DontCare%22%20as%20value%20for%20one%20of%20the%20attribute.%20Same%20result%20using%20the%20-OutVariable%20parameter.%3C%2FP%3E%3CP%3EAm%20i%20missing%20something%20%3F%20Thanks%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECl%C3%A9ment%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-183520%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Clement Olivier
MVP

Hello,

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.

Am i missing something ? Thanks !

 

Clément

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
7 Replies