Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Changing .Value To.MB

$
0
0

I am running the following query but I'm not able to convert the value to MB
,@{Label="Test";Expression={$_.ProhibitSendQuota.Value.ToMB()}}

Not sure what I'm doing wrong, the attribute is empty:

(Get-MailboxStatistics -server "Mail01-NY" | Where {(!($_.StorageLimitStatus -match "BelowLimit|NoChecki
ng"))} | Select-Object DisplayName -ExpandProperty DisplayName) | Get-Mailbox | Select-Object DisplayName,Alias,ServerNa
me,UseDatabaseQuotaDefaults,IssueWarningQuota,@{Label="Test";Expression={$_.ProhibitSendQuota.Value.ToMB()}}


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>