locked
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.

    http://community.office365.com/en-us/f/613/p/285566/872234.aspx#872234

    Above is the original thread.

    Thanks

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

All replies

  •  Get-UserPhoto |
         ForEach-Object{
             $UserID=$_.UserID
             $_.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