Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Mailbox Folder Stats

$
0
0

Hi<o:p></o:p>

I am trying
to create a PowerShell Script that will return all users in the organisation
that have a mailbox over a certain size<o:p></o:p>

then loop
through each one outputting the folder size to a csv file for review, this is
what I have but I am getting an error when I run the for each statement stating
the operation cannot be performed on @user name<o:p></o:p>

any help
greatly appreciated thanks<o:p></o:p>

$mailboxname



$mailboxname

=Get-Mailbox-ResultSizeUnlimited|Get-MailboxStatistics|where{$_.TotalItemSize-gt6000mb}|Select-ObjectDisplayName



foreach

($mailboxnamein$mailboxname)

{


Get-MailboxFolderStatistics

-identity$mailboxname-FolderScopeALL|FTIdentity,foldersize,ItemsInFolder-wrap>C:\stats.csv

}

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>