Solved

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

Posted on 2010-09-23
13
1,022 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

707 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