Solved

Get-MailboxStatistics cmdlet/script help

Posted on 2013-06-28
1
376 Views
Last Modified: 2013-07-08
Hey Guys, I am looking to create a script that will run every Monday morning and email to a distribution list.

But first, what would the script or cmdlet syntax need to be to export just these fields into a CSV?

DisplayName
Title
Department
Office
Enabled
Expires
Last Mailbox Logon
MailboxSizeMB
Type
ServerName
Database
ItemCount
PrimarysmtpAddress

On a side note, is it possible to also export the "Device model: iPad2C2" if they have a device syncing with EAS?
0
Comment
Question by:GCTTechs
1 Comment
 
LVL 9

Accepted Solution

by:
bharrington83 earned 500 total points
ID: 39284779
Write your output of this get string to a file, say C:\body.txt.  Then use the procedure here: http://blogs.msdn.com/b/rkramesh/archive/2012/03/16/sending-email-using-powershell-script.aspx to write the email.  Make sure to set $msg.body = Get-Content C:\YOURFILENAME.txt
0

Featured Post

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Join & Write a Comment

Suggested Solutions

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

708 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

16 Experts available now in Live!

Get 1:1 Help Now