Solved

o365 powershell question -  need assistance removing photos

Posted on 2014-12-02
2
285 Views
Last Modified: 2014-12-02
hello, can someone provide a powershell script that I can run against the Office 365 tenant account to use an input CSV and remove the photo from each user?

many thanks!

S.
0
Comment
Question by:siber1
2 Comments
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40477657
Try this:
$csv = Import-Csv C:\Folder\userphotos.csv
ForEach ($line in $csv) {
   Remove-UserPhoto $line.email -confirm:$false
}

Open in new window

Then format your CSV file as below:

email
user1@company.com
user2@company.com
user3@company.com
etc.
0
 

Author Closing Comment

by:siber1
ID: 40477662
thanks much! worked great.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief introduction to what I consider to be the best editor for PowerShell.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question