Delete all of the Mailbox content using Exchange PowerShell

Hi ; In occasional cases you may be needing to delete the mailbox content from an user; In order to do so run the following from the Exchange Console / Verify prior using the second command the items : Get-MailboxFolderStatistics -Identity username@company.com | Select FolderPath,ItemsInFolder Run the serach to delete Search-Mailbox -Identity "Example User" -SearchQuery … Continue reading Delete all of the Mailbox content using Exchange PowerShell

Enable Exchange account logging on accounts

Hi ; How to enable logs into an exchange account: After you connect to your Exchange PowerShell organization, use PowerShell to enable mailbox audit logging for a mailbox /  Set-Mailbox -Identity "Name of the user" -AuditEnabled $true   Alternatively, you can enable mailbox auditing for all mailboxes in your organization. Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails … Continue reading Enable Exchange account logging on accounts

Resend Multiple Emails via Outlook VBA from Folder / Outbox Stuck problems when sending multiple emails Macro

When emails stuck on outbox; Copy/ Move them to another folder; Clear outbox Use the macro to send the remaining emails ; In the first place, press “Alt + F11” key buttons in the main Outlook window. After getting into the “Microsoft Visual Basic for Applications” window, open a blank module. Subsequently, copy the following … Continue reading Resend Multiple Emails via Outlook VBA from Folder / Outbox Stuck problems when sending multiple emails Macro

Migrate emails between accounts ( Exchange-office365 online) using dates

Hi ; Today I will leave a handy script that will move emails between accounts on office365 ; This could be of use on the scenario that you want to archive emails on another account ; or just simply migrate There are some requirements though prior performing this action; 1."Mailbox Import Export" Membership 2."Mailbox Search" … Continue reading Migrate emails between accounts ( Exchange-office365 online) using dates

Exchange get permissions of all users

Hi; This a nice PowerShell exchange script that will output all of the permissions of all users in regards other mailboxes; Can be very handy in some situations or either to have some sort of control Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} … Continue reading Exchange get permissions of all users