Posts Tagged ‘Exchange Cmdlet’

Single Item Recovery cmdlets Exchange 2010

October 7th, 2011

To view single item recovery status:

get-mailbox -identity {identity} | fl singleitemrecovery*

To view -RetainDeletedItemsFor status

get-mailbox -identity {identity} | fl RetainDeletedItemsFor*

To set single item recovery for a specific mailbox with 90 day retention:
Set-Mailbox -identity {identity} -SingleItemRecoveryEnabled $true -RetainDeletedItemsFor 90

To set single item recovery for all users in a database and retain for 90 Days:

Get-Mailbox -Database {your mailbox database} -ResultSize Unlimited | Set-Mailbox -SingleItemRecoveryEnabled $true -RetainDeletedItemsFor 90

To set single item recovery for newly created mailboxes (two weeks in this case) and retain for 90 days:

Get-Mailbox -Database {your mailbox database}  -ResultSize Unlimited | Where { $_.WhenCreated -gt (get-date).adddays(-14) } | Set-Mailbox -SingleItemRecoveryEnabled $true -RetainDeletedItemsFor 90

Tags: ,
Posted in Uncategorized | Comments (0)

Number of mailboxes in each Exchange 2010 database

October 4th, 2011

The following cmdlet allows you go query the number of mailboxes in each database.

(Get-MailboxDatabase) | Select-Object Name,@{Name=”Number of users”;Expression={(Get-Mailbox -ResultSize Unlimited -Database $}}

Tags: , ,
Posted in Uncategorized | Comments (0)

Exchange 2010 Enable Read Tracking

September 14th, 2011

The organization that I work for recently moved from Groupwise to Exchange 2010.  One of the features that was missing by default was being able to see the read status of a message by another user in the organization.  I ran across a feature in Exchange 2010 that allows a user to track a message and see the “read status”.

The following will check if it is enabled:
Get-OrganizationConfig | fl read*

The following will turn it on:
Set-OrganizationConfig –ReadTrackingEnabled $true

Once this is on and has replicated through the exchange organization you should be able to view a delivery report for the sent item and see the “read status”.

Source Credit:

Tags: , ,
Posted in Uncategorized | Comments (0)