filmov
tv
Basic PowerShell commands for Shared Mailboxes in Exchange Online #Microsoft #PowerShell
Показать описание
Hi Everyone,
This video will show you a few PowerShell commands you can use in Exchange Online for shared mailboxes.
1) How to create a Shared Mailbox
New-Mailbox -name "Shared Mailbox Name" -Shared
2) To display a list if exisiting shared mailboxes
Get-Mailbox -Filter '(RecipientTypeDetails -eq "SharedMailbox")'| Select-Object DisplayName,Alias,RecipientTypeDetails,PrimarySmtpAddress
3) To get list of shared mailboxes and list of users with Access Rigghs
Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights | where { ($_.User -like '*@*') }
4) To check shared mailboxes size
$SMbx = Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited
$Report = @()
ForEach ($S in $SMbx) {
$Stat = (Get-MailboxStatistics -Identity $S.Alias | Select ItemCount, TotalItemSize)
$ReportLine = [PSCustomObject][Ordered]@{
Mailbox = $S.DisplayName
TotalItems = $Stat.ItemCount
MailboxSize = $Stat.TotalItemSize
Quota = $S.ProhibitSendReceiveQuota
Licensed = $S.SkuAssigned}
$Report += $ReportLine }
$Report | Format-Table Mailbox, TotalItems, MailboxSize, Quota, Licensed -AutoSize
#exchangeonline #howto #email #office365
This video will show you a few PowerShell commands you can use in Exchange Online for shared mailboxes.
1) How to create a Shared Mailbox
New-Mailbox -name "Shared Mailbox Name" -Shared
2) To display a list if exisiting shared mailboxes
Get-Mailbox -Filter '(RecipientTypeDetails -eq "SharedMailbox")'| Select-Object DisplayName,Alias,RecipientTypeDetails,PrimarySmtpAddress
3) To get list of shared mailboxes and list of users with Access Rigghs
Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | select identity,user,accessrights | where { ($_.User -like '*@*') }
4) To check shared mailboxes size
$SMbx = Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize Unlimited
$Report = @()
ForEach ($S in $SMbx) {
$Stat = (Get-MailboxStatistics -Identity $S.Alias | Select ItemCount, TotalItemSize)
$ReportLine = [PSCustomObject][Ordered]@{
Mailbox = $S.DisplayName
TotalItems = $Stat.ItemCount
MailboxSize = $Stat.TotalItemSize
Quota = $S.ProhibitSendReceiveQuota
Licensed = $S.SkuAssigned}
$Report += $ReportLine }
$Report | Format-Table Mailbox, TotalItems, MailboxSize, Quota, Licensed -AutoSize
#exchangeonline #howto #email #office365
Комментарии