Script to Export photos in bulk from Office 365 RRS feed

  • Question

  • I was directed here for assistance on a PowerShell script that we could use to export all of our photos from Office365 to somewhere we can actually access.

    I was given these commands;

    $data = Get-UserPhoto -Identity UserID            
    $data.PictureData | Set-Content C:\Temp\UserID.jpg -Encoding Byte

    Note: Please replace the "UserID" with the real one and specify the save path as you want.
    The command above is for a single user. If you want to export the photos for users in bulk at one time, it may need a PowerShell script.

    If I could get some assistance with this, it would be much appreciated.


    Above is the original thread.


    • Moved by Bill_Stewart Wednesday, February 25, 2015 10:28 PM Abandoned
    Friday, January 2, 2015 1:39 PM

All replies

  •  Get-UserPhoto |
             $_.PictureData | Set-Content "C:\Temp\$UserID.jpg" -Encoding Byte


    • Edited by jrv Monday, January 5, 2015 5:34 PM
    Monday, January 5, 2015 5:33 PM