13,728 questions
Microsoft Graph PowerShell SDK would be a good place to start. Since it is not possible to get list of user profile picture, you may have to get the users list then perform the Get-MgUserPhoto -UserId user_id operation for each of them
>$users = Get-MgUser
>for($i = 0; $i -lt $users.length; $i++){ Get-MgUserPhotoContent -UserId $users[$i].id }