I am trying to track down all the mailboxes that aren't set to use the database defaults as far as mailbox quotas. Then I am trying to compare their IssueWarningQuota to their TotalItemSize.
The beginning of said script:
$Users = get-mailbox -resultsize unlimited | ?{$_.UseDatabaseQuotaDefaults -eq "False"} | get-mailboxstatistics foreach ($user in $Users) { $y = ($user.IssueWarningQuota.valuetoMB - $user.TotalItemSize.valuetoMB)Yes I realize that is incomplete... this is the part I am stuck at currently though :D
My issue is in my equation above. $user.IssueWarningQuota.valuetoMB doesn't pull anything because I piped into a "get-mailboxstatistics" cmdlet, which doesn't contain IssueWarningQuota.
What syntax do I need for it to point back to the Get-Mailbox part of the initial command? Or is that not possible?
Thanks