Solved

o365 powershell question -  need assistance removing photos

Posted on 2014-12-02
2
267 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

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Synchronize a new Active Directory domain with an existing Office 365 tenant
In this video we show how to create an Address List 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 Organization >> Ad…
This video discusses moving either the default database or any database to a new volume.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now