Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Power Shell Loop assist?

$
0
0

Hi guys, I am struggling to get this part working : can anyone perhaps help?

Powershell
1
2
3
4
5
6
$UserMailboxStats=Get-MailboxServer|Get-MailboxStatistics|Sort-ObjectTotalItemSize-Descending$UserMailboxStats|selectDisplayName,@{Name="TotalItemSize (MB)";Expression={$_.TotalItemSize.Value.ToMB()}}-First$topXmailboxes$users=@(foreach($mailboxin$UserMailboxStats){$mailbox.DisplayName})$sizes=@(foreach($mailboxin$UserMailboxStats){[Double]$mailbox.TotalItemSizeInBytes/1GB})


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

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