Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get shared mailbox powershell exchange 2010

$Mailboxes = Get-Mailbox -RecipientTypeDetails SharedMailbox
foreach ($Mailbox in $Mailboxes)
{
$Mailbox | Add-Member -MemberType “NoteProperty” -Name “MailboxSizeMB” -Value ((Get-MailboxStatistics $Mailbox).TotalItemSize.Value.ToMb())
$Mailbox | Add-Member -MemberType “NoteProperty” -Name “ItemCount” -Value ((Get-MailboxStatistics $Mailbox).ItemCount)
}
$Mailboxes | Sort-Object MailboxSizeMB -Desc | Select DisplayName,PrimarySMTPAddress,MailboxSizeMB,ItemCount,SamAccountName | Export-Csv -NoType “C:Mailboxessize.csv”
Comment

PREVIOUS NEXT
Code Example
Shell :: git config pull with prune 
Shell :: multiple commands one line linux 
Shell :: bash how to print the list of files in a directory ls 
Shell :: The current application is not compatible with NativeScript CLI 8.0.2 
Shell :: git clone bare 
Shell :: puppet install on centos 7 
Shell :: how to add your project to github 
Shell :: push local branch changes to remote branch 
Shell :: extract a tar.xz in linux 
Shell :: ls order by filename length 
Shell :: Install SSSM Agent on Amazon Linux 2 
Shell :: download heroku ubuntu 
Shell :: read a file and count how many lines 
Shell :: install of the kali wsl desktop 
Shell :: vscode terminal shell font broken 
Shell :: push only one commit git 
Shell :: asdf use local nodejs 
Shell :: Run shell script with typescript 
Shell :: install solana 
Shell :: CocoaPods not installed or not in valid state. 
Shell :: how to cancel a scheduled shutdown or reboot with shutdown command 
Shell :: copy remote ssh key mac 
Shell :: run bat file 
Shell :: cht sht zsh completion 
Shell :: odoo docker 
Shell :: ffmpeg from frames range to video 
Shell :: docker machine install linux 
Shell :: ubuntu gui manager 
Shell :: adb shell 
Shell :: nginx disable site 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =