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

Converting from KB to MB within Query

$
0
0

I'm trying to run the following query:

Get-PublicFolder -identity "\" -recurse | Where {($_.Replicas -match 'EMAIL-UK')} | Get-Publicfolderstatistics | Select-Object Name,Folderpath,TotalItemSize,Itemcount | Export-Csv "c:\UKPublicReplcas.csv" -NoType

The query runs fine but the results of the TotalItemSize is in KB, how can i convert that to MB within the same query?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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