Powershell command mailbox statistics "DisplayName,ItemCount,TotalItemSize"
Per il comando che le interessa deve utilizzare Windows powershell:
get-mailbox | get-mailboxstatistics | select DisplayName,ItemCount,TotalItemSize
Eseguirlo dopo essersi connesso ad Exchange Online:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
************************************************
1. $UserCredential = Get-Credential2. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUrihttps://outlook.office365.com/powershell-liveid -Credential $UserCredential -Authentication Basic -AllowRedirection3. Import-PSSession $Session4. get-mailbox | get-mailboxstatistics | select DisplayName,ItemCount,TotalItemSize | Export-Csv c:\risultati.csvL'ultimo comando esportera' i risultati in un file .CSV sul disco C del suo computer
Commenti
Posta un commento