Hi all,
apologies if this has been asked before but I couldn't find an answer.
If I run this in EMS it works perfectly
$size = '{0:N2}' -f ((get-mailboxdatabase $_.name -status).databasesize.ToMB()/1024)
However if I run it from PowerShell and I connect to Exchange I get "method invocation failed because....doesn't contain a method named "ToMB"
I would prefer it so it can be run from powershell so that I can add it to the task schedule and to also give it to the support team who may not have access to the exchange server to run it remotely.
TIA
Andy