Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
informatique:microsoft:windows:exchange [2013/11/25 06:50] benoit |
informatique:microsoft:windows:exchange [2018/09/06 19:10] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ===== Commande powershell Exchange ===== | + | ===== Commandes Powershell Exchange ===== |
==== Indexation ==== | ==== Indexation ==== | ||
Ligne 5: | Ligne 6: | ||
Test-ExchangeSearch username | fl | Test-ExchangeSearch username | fl | ||
+ | |||
+ | ==== Lister les comptes et les listes ==== | ||
+ | |||
+ | Lister les listes de distribution : | ||
+ | |||
+ | Get-DistributionGroup | Format-Table PrimarySmtpAddress | ||
+ | |||
+ | Obtenir les membre d'une liste de distribution : | ||
+ | Get-DistributionGroupMember list@domain.com | Format-Table PrimarySmtpAddress | ||
==== Quota ==== | ==== Quota ==== | ||
- | Pour lister les Quota : | + | Pour lister les Quotas : |
Get-Mailbox | Select-Object DisplayName,Database,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota | Sort-Object DisplayName | Get-Mailbox | Select-Object DisplayName,Database,IssueWarningQuota,ProhibitSendQuota,ProhibitSendReceiveQuota | Sort-Object DisplayName | ||
+ | |||
+ | Pour obtenir le statut d'une boite mail avec le quotas consommé : | ||
+ | Get-MailboxStatistics user | fl | ||
+ | |||
+ | Pour obtenir le statut d'une boite mail en affichant que certains champs : | ||
+ | Get-MailboxStatistics user | Select-Object DisplayName,TotalItemSize,StorageLimitStatus | fl | ||
+ | | ||
+ | Exporter en sélectionnant certains champs : | ||
+ | Get-MailboxStatistics | Select-Object DisplayName,StorageGroupName,StorageLimitStatus,TotalItemSize,TotalDeletedItemSize | Export-CSV c:\Export-MailboxStatistics.csv | ||
+ | |||
+ | Pour obtenir les statistiques de tout les utilisateurs sous export CSV | ||
+ | Get-MailboxStatistics | Export-CSV c:\Export-MailboxStatistics.csv | ||
+ | |||
+ | Donner les permissions d'une boite mail à l'administrateur : | ||
+ | Add-MailboxPermission -Identity "Prenom NOM" -User "DOMAIN\administrator" -AccessRights FullAccess -InheritanceType All | ||
+ | |||
+ | ==== Tracker un mail ==== | ||
+ | |||
+ | Exemple pour tracker la remise de mail : | ||
+ | |||
+ | Get-MessageTrackingLog –Sender "Sender@domain.com" –Recipients "Recipient@domain.com" -MessageSubject "Subject of Message" -Start "3/28/2011 8:00AM" | fl |