Basic PowerShell commands for Shared Mailboxes in Exchange Online #Microsoft #PowerShell

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

hy i'from Brazil, i like you! tanks for video

gabrieltijon
Автор

Hii! At the end of session in Remove-PSSession - id 1
here id 1 is what does it mean?

shaikjawahar
Автор

Most require think you miss, how we added members in shared mailbox with full access via powershell

pradeepsinghnegi
Автор

Thnx for the video but is a bit hard to follow if you dont explicit type the commands, i get errors and dont know why

emmanueljohnson
Автор

Hello! Is there a way to automate these types of commands with, say .bat files or other means?

thaleschristofaro