Quantcast
Viewing all articles
Browse latest Browse all 21975

Exchange Users over Quota Limit.

I am trying to get a list of users which are over their quota limit. I would like to filter on the "_.StorageLimitStatus" field and only get back results on any value except BelowLimit,NoChecking or a Null Value. The current query does not filter. I need help with this line:

Where {$_.StorageLimitStatus -ne "BelowLimit"} | Where {$_.St
orageLimitStatus -ne "NoChecking"}

get-mailbox -IgnoreDefaultScope | Where {$_.StorageLimitStatus -ne "BelowLimit"} | Where {$_.St
orageLimitStatus -ne "NoChecking"} | Select name,servername,Database,UseDatabaseQuotaDefaults,@{label="StorageLimitStatu
s";expression={(get-mailboxStatistics $_).StorageLimitStatus}},@{label="TotalItemSize";expression={(get-mailboxStatistic
s $_).TotalItemSize.Value.ToMB()}},@{label="IssueWarningQuota";expression={$_.IssueWarningQuota.Value.ToMB()}},@{label="
ProhibitSendQuota";expression={$_.ProhibitSendQuota.Value.ToMB()}},@{label="ProhibitSendReceiveQuota";expression={$_.Pro
hibitSendReceiveQuota.Value.ToMB()}} | FT


Viewing all articles
Browse latest Browse all 21975

Trending Articles