Link to home
Start Free TrialLog in
Avatar of amku03
amku03

asked on

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

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??
Avatar of MegaNuk3
MegaNuk3
Flag of United Kingdom of Great Britain and Northern Ireland image

try

Get-Mailbox | Where {$_.UseDatabaseRetentionDefaults -eq $False} | Select Name, UseDatabaseRetentionDefaults
Avatar of Akhater
get-mailbox | ?{ $_.UseDatabaseQuotaDefaults -ne "true"}

Sorry I meant:
Get-Mailbox | Where {$_.UseDatabaseQuotaDefaults -eq $False} | Select Name, UseDatabaseQuotaDefaults
Akhater - that is a nice short command...
MegaNuk3 thank you but you beat me to it :)
Or export to CSV:
get-mailbox |  Where {$_.UseDatabaseQuotaDefaults -eq $False} | select name, *quota | sort name | export-csv Quotas.csv
Avatar of amku03
amku03

ASKER

I thisnk we woul dalso need parametr for Resultsize
ASKER CERTIFIED SOLUTION
Avatar of Akhater
Akhater
Flag of Lebanon image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@akhater - u at least typed UseDatabaseQuotaDefaults whereas my first post was wrong, I posted UseDatabaseRetentionDefaults
Avatar of amku03

ASKER

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!!
thanks a lot for the consideration but I do believe a split is more than fair here.

Cheers
no worries, Akhater is far better at PowerShell than me...
Avatar of amku03

ASKER

Not sure how to do that