Skype Exchange 4U

Microsoft Skype Exchange Server Blog

MS Exchange Day to Day Powershell Command

To Display DL List & Managed by Details

Get-DistributionGroup -identity "DL Name" | ft -wrap managedby

To give Permission on Public Folders to Clients

Add-PublicFolderClientPermission –Identity “Foldername” –user UserName –AccessRights PublishingEditor

 Get-PublicFolder –Identity “IT” –Recurse | Add-PublicFolderClientPermission –User “Name” –AccessRights PublishingEditor

To give Full Mailbox Access Permission

Add-MailboxPermission -Identity "Mailboxname" -User “Username” -AccessRights FullAccess -InheritanceType All

To Get All DB's in DAG those are not Healthy

Get-MailboxDatabaseCopyStatus dg* | where { $_.status -ne 'healthy' -and $_.status -ne 'mounted' }

To get Mailbox Export Statistics

Get-MailboxExportRequestStatistics -Identity Name | fl per*,status

To get Mail Delivery Queue Length

Get-Queue -Server Name | where-Object { $_.MessageCount -gt 10 -and $_.DeliveryType -ne 'ShadowRedundancy' }

To display all User Mailboxes and it's Sizes on Particular DAG

Get-MailboxDatabase “Databasename” | Get-MailboxStatistics | Sort-Object -Property totalitemsize -Descending | ft displayname*,*totalitemsize

To Set Sender Authentication Option

Set-DistributionGroup -RequireSenderAuthenticationEnabled $true

To Set E-Mail forwarders

Set-Mailbox -Identity ‘gfrey3’ -ForwardingAddress ‘’ -DeliverToMailboxAndForward $true

To Update DB's Content Indexes for perticular Db's

Get-MailboxDatabaseCopyStatus “Servername\Databasename” | Update-MailboxDatabaseCopy –CatalogOnly

To Give Send As Permission

add-adpermission -identity “sharedmailboxname” -User "Username" -Extendedrights "Send As"

To remove Organizer Name in Meeting Request Subject

Set-CalenderProcessing -Identity "sharedmailbox” -DeleteSubject $false -AddOrganizerToSubject $false

To know the status of Export

Get-MailboxExportRequest -Mailbox Name | Get-MailboxExportRequestStatistics

To Update Catalog Index for Databases

Update-MailboxDatabaseCopy "servername\databasename" -CatalogOnly

To restore deleted mails from dumpster (Archive)

New-mailboxexportrequest -mailbox "nameof" -IncludeFolders "RestoredItems" -filepath \\outputfilelocation\Archive.pst -IsArchive