So basically I have a script whereby:
$MailboxArray = New-Object System.Object
$MailboxArray | Add-Member -MemberType NoteProperty -value $mail.issuewarningquota -Name WarningQuota
and where $mail:
$mail = get-mailbox -id $_
Now it works great in a For loop to get info for every mailbox in Exchange, but I would like the IssueWarningQuota output to be in MB
and not GB
.
I have a method in place for the TotalItemSize where:
TotalItemSize.value.ToMB()
But this doesn't/won't work for IssueWarningQuota, any way around this?