O-Xchange Notes from the Field!

Wednesday, March 31, 2010

preparing Active directory for Exchange 2010

Follow the steps below to prep your AD for exchange 2010. you will need enterprise admin rights to perform this.
From a command prompt, and using setup.com(from exch2010 cd), run as follows and in order:
run this, if you still have remnants of exch2003 in your organization
setup.com /PrepareLegacyExchangePermissions
setup.com /PrepareSchema
setup.com /prepareAD
setup.com /preparedomain

Thursday, March 18, 2010

Working with disconnected mailboxes

Working with disconnected mailboxes

Deleted mailboxes will appear in disconnected mailbox list, but it will not reflect immediately. Typically,You have to wait for online maintenance to run and complete.
If you accidentally delete a mailbox, you will not be able to find it in Disconnected Mailbox immediately. You have to  run Clean-MailboxDatabase to get the deleted mailbox. * If it is not appearing in the disconnected mailbox view run one of the following commands from powershell
To Clean Database of Individual Store, run
Clean-MailboxDatabase \servername\SGName\Store
To clean all databases on a specific server
Get-Mailboxdatabase | Where{ $_.Server –eq “servername”}| clean-MailboxDatabase

 To Clean all the database in the Organization 
Get-Mailboxdatabase | Clean-MailboxDatabase
To Clean all the database on a specific server
Get-Mailboxdatabase | Where{ $_.Server –eq “servername”}| clean-MailboxDatabase
To Clean all the Database which matches the specific name given in Databasename
Get-Mailboxdaatabase | Where{ $_.Name –eq “<DatabaseName>”}| clean-MailboxDatabase

To find Disconnected mailboxes on a particular server:
Get-MailboxStatistics -Server servername | where { $_.DisconnectDate -ne $null } | select DisplayName,DisconnectDate
To connect a user id to a disconnected mailbox:
Connect-mailbox –database <mailbox database name> –Identity <disconnected mailbox name> –User <User to connect to>

Wednesday, March 17, 2010

Understanding AutoArchive Settings

What do AutoArchive settings mean?
AutoArchive helps manage the space in your mailbox or on the e-mail server that you are using by automatically moving items to an archive location. Depending on the options, AutoArchive completes one or both of the following actions:
A. Moves items from their original location, generally one of your active folders, to an archive folder.
B. Permanently deletes items that have passed their aging periods

Note If you choose to have items deleted, they are not archived. If you choose to have items archived, they cannot be deleted by an AutoArchive. Once items are archived, they can only be deleted manually.
Aging periods of Outlook items
Any Outlook item that has exceeded its aging period is included in the next AutoArchive, unless the item has been specifically marked to be excluded. The default aging period for each Outlook folder is as follows:
Aging period
Inbox and Drafts
6 months
Sent Items and Deleted Items
2 months
3 months
6 months
6 months
6 months
6 months
Note Folders that you create that contain the same type of items as the Inbox, Calendar, Tasks, Notes, or Journal have the same default, six-month aging period. For example, a mail folder that you create for status reports received from a co-worker or a contact folder you create for personal contacts.
Determine the age of an item
Item type
When the aging period starts
E-mail message
The received date/time or when you last changed and saved the message, whichever is later.
Calendar meeting, event, or appointment
The date when you last changed and saved the item, whichever is later. Recurring items are not AutoArchived.
The completion date or when you last changed and saved the task. Tasks that are not marked complete are not AutoArchived. Tasks assigned to other people are archived only if marked complete.
When you last changed and saved the note.
Journal entry
The date the Journal entry was created or when you last changed and saved the entry.
Contacts are not archived by default. However, you can manually archive them.
AutoArchive settings and options
See the following descriptions for the settings and options that you can apply when customizing AutoArchive.
Run AutoArchive every n days Choose how often AutoArchive runs. Archiving many items at the same time might slow your computer's performance. Therefore, it is better to use AutoArchive more frequently to reduce the number of items porocessed.
To turn off the AutoArchive feature, clear the Run AutoArchive every n days check box.
Prompt before AutoArchive runs Choose whether you want a reminder message to appear before AutoArchive processes your Outlook items. When prompts appear, you can click No on the reminder message to cancel that AutoArchive session.
Delete expired items (e-mail folders only) This option is off by default. Select this check box to delete messages after their aging period has passed.
Archive or delete old items Choose this option if you want to set or change the settings that follow. If this check box is cleared, AutoArchive runs using default settings.
Show archive folder in folder list Select this check box to have the Archive folder listed with your other working folders in the Navigation Pane. If you do not use this option, you can still open your archive folder — click the File tab, then on the Open tab, click Open Outlook Data File.
Clean out items older than Specify the age at which you want items to be archived, in days, weeks, or months. You can configure a period of one day up to a maximum of 60 months.
Move old items to Select this check box to archive old items instead of automatically delete them. The default folder appears in the box. To use a different folder, enter the folder location in the box or click Browse. Selecting this option clears selection of the Permanently delete items option.
Permanently delete items This option deletes any expired items. They are not moved and no archive copy is kept. Selecting this option clears selection of the Move old items to option.
Apply these settings to all folders now This option applies the AutoArchive settings, including your changes, to all folders. To specify unique settings for one or more folders, do not choose this option. Instead, right-click the folder, click Properties and then go to the AutoArchive tab. Changes made to a folder affect only that folder.

Tuesday, March 16, 2010

How to manually remove Exchange 2007

(Note:not supported by MSFT)
  1. Run setup /m:uninstall
  2. Stop and disable all the Exchange 2007 services
  3. Use Registry Editor (Start->Run->Regedit) to remove these Exchange related registry keys:
    • HKLM\SOFTWARE\Microsoft\Exchange
    • HKLM\SYSTEM\CurrentControlSet\Services\MSExchange* (all the keys starting with “MSExchange”)
    • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Exchange
  4. Remove the entire Web Server role (don’t forget to reinstall afterwards as it’s a prerequisite for E2K7!)
  5. Remove the Exchange 2007 server from Active Directory. I ended up deleting the entire “Microsoft Exchange” branch from ADSIEdit (Configuration Container > Services > Microsoft Exchange) as my Org only counts one server.
  6. Use Windows Explorer to delete:
    • C:\Program Files\Microsoft\Exchange Server
    • C:\ExchangeSetupLogs
  7. Consider using Windows Installer CleanUp Utility to remove all the exchange related info from the installer database.
  8. Remove the security groups created by Exchange setup from AD

Wednesday, March 10, 2010

Validate empty subject line in Outlook 2007

How do I set up an alert/warning about sending out an email in Outlook that contains no title?

please see article below