Solved

Powershell to identify users with mailbox quota size greater than 512 MB

Posted on 2010-09-23
13
1,016 Views
Last Modified: 2012-06-27
We have exchange 2007 Sp1

I want to pull out the names of the users who do  not have default mailbox quota set for their accounts. In oother words have a custom mailbox quota set.
Can this be done via powershell??
0
Comment
Question by:amku03
  • 6
  • 4
  • 3
13 Comments
 
LVL 31

Expert Comment

by:MegaNuk3
Comment Utility
try

Get-Mailbox | Where {$_.UseDatabaseRetentionDefaults -eq $False} | Select Name, UseDatabaseRetentionDefaults
0
 
LVL 49

Expert Comment

by:Akhater
Comment Utility
get-mailbox | ?{ $_.UseDatabaseQuotaDefaults -ne "true"}

0
 
LVL 31

Expert Comment

by:MegaNuk3
Comment Utility
Sorry I meant:
Get-Mailbox | Where {$_.UseDatabaseQuotaDefaults -eq $False} | Select Name, UseDatabaseQuotaDefaults
0
 
LVL 31

Expert Comment

by:MegaNuk3
Comment Utility
Akhater - that is a nice short command...
0
 
LVL 49

Expert Comment

by:Akhater
Comment Utility
MegaNuk3 thank you but you beat me to it :)
0
 
LVL 31

Expert Comment

by:MegaNuk3
Comment Utility
Or export to CSV:
get-mailbox |  Where {$_.UseDatabaseQuotaDefaults -eq $False} | select name, *quota | sort name | export-csv Quotas.csv
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:amku03
Comment Utility
I thisnk we woul dalso need parametr for Resultsize
0
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
Comment Utility
right you are get-mailbox -resultsize unlimited | ?{ $_.UseDatabaseQuotaDefaults -ne "true"}
0
 
LVL 31

Expert Comment

by:MegaNuk3
Comment Utility
@akhater - u at least typed UseDatabaseQuotaDefaults whereas my first post was wrong, I posted UseDatabaseRetentionDefaults
0
 

Author Comment

by:amku03
Comment Utility
Akhater, your command gives more detailed result and MegaNuk3 your gives result but not teh size details.
Akhater I am gonna award you points for this one for a better shell command and also to make for yesterday's question :)
Cheers!!
0
 
LVL 49

Expert Comment

by:Akhater
Comment Utility
thanks a lot for the consideration but I do believe a split is more than fair here.

Cheers
0
 
LVL 31

Expert Comment

by:MegaNuk3
Comment Utility
no worries, Akhater is far better at PowerShell than me...
0
 

Author Comment

by:amku03
Comment Utility
Not sure how to do that
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
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

15 Experts available now in Live!

Get 1:1 Help Now