How to View Disconnected Mailbox’s and Purge Disconnected Mailboxes from Exchange 2010

To view disconnected mailbox’s, essentially mailboxes that have been deleted from their user accounts, you need to first ensure that Exchange has gone through and cleaned the database.  This is done to ensure that it marks that mailbox as deleted.  If your database is MDB36, run the following command: Clean-MailboxDatabase MDB36 Exchange gives no result from the command.  But now […]

Read more

How to Apply Permissions to Public Folder and All Sub Folders in Exchange 2007/2010 Using Exchange Management Shell

If you have a public folder that your working on, and you need to apply permissions to it using the Exchange Management Shell, its pretty easy.  The command is: Add-PublicFolderClientPermission –Identity “Foldername” –user UserName –AccessRights PublishingEditor For instance, to add the user pponzeka to the folder IT with the Publishing Editor permission, the command would be the following: This works […]

Read more

How to Import Users via CSV in Exchange 2010

Create an csv file with the necessary information across the top row of the file as such: The top row is going to coordinate with the S_.value that you are going to use in the following Exchange Shell command: Import-CSV “C:Mailboxes.csv” | foreach {new-mailbox –Name $_.name –Alias $_.alias –UserPrincipalName $_.userprincipalname –Database $_.Database –OrganizationalUnit $_.organizationalunit –password (ConvertTo-SecureString $_.password –AsPlainText –force)} And […]

Read more

Delete All Calendar Entries In An Exchange 2010 Mailbox

Open EMS Run: Search-Mailbox –identity username –SearchQuery kind:meetings –DeleteContent  You can get an estimate about the number of entries and size that will be freed up after deletion by running: Search-Mailbox –identity username –SearchQuery kind:meetings –EstimateResultOnly    Example: Search-Mailbox –identity mmcguire –SearchQuery kind:meetings –DeleteContent 

Read more

Unable to Migrate User to O365 – “Target user already has a primary mailbox”

If you run into an issue where a user has both a mailbox in Exchange on-premise and O365, and you cannot migrate the account to O365. Error: “Target user already has a primary mailbox” FIX: Remove the O365 account and then do a full DirSync.  Once done, migrate the on-prem mailbox to O365. Open PowerShell in Connect-MSOLService -Credential $adminCredential   (enter […]

Read more

Delete emails from specific sender in one users mailbox

1.  Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential  $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection  Import-PSSession $s    Run this command in Powershell   Search-Mailbox -identity “User Mailbox” -SearchQuery “From:user@domain.com” -deletecontent 

Read more

Delete specific email from O365 mailboxes

1.  Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential  $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection  Import-PSSession $s  Type in your ada credentials with username of <username>@domain.com Type in your ada credentials with username of domain\<username>   Run this command: you will need the distribution group name […]

Read more
1 2 3 4 5 9