Solved

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

Posted on 2010-09-23
13
1,018 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
ID: 33744365
try

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

Expert Comment

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

0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33744389
Sorry I meant:
Get-Mailbox | Where {$_.UseDatabaseQuotaDefaults -eq $False} | Select Name, UseDatabaseQuotaDefaults
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33744410
Akhater - that is a nice short command...
0
 
LVL 49

Expert Comment

by:Akhater
ID: 33744439
MegaNuk3 thank you but you beat me to it :)
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33744444
Or export to CSV:
get-mailbox |  Where {$_.UseDatabaseQuotaDefaults -eq $False} | select name, *quota | sort name | export-csv Quotas.csv
0
 

Author Comment

by:amku03
ID: 33744446
I thisnk we woul dalso need parametr for Resultsize
0
 
LVL 49

Accepted Solution

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

Expert Comment

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

Author Comment

by:amku03
ID: 33744497
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
ID: 33744514
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
ID: 33744537
no worries, Akhater is far better at PowerShell than me...
0
 

Author Comment

by:amku03
ID: 33744542
Not sure how to do that
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
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…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
how to add IIS SMTP to handle application/Scanner relays into office 365.

803 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