O-Xchange Notes from the Field!

Friday, December 19, 2008

How to rebuild Full-Text Index Catalog for Exchange server

issue: Customer complained of not being able to search mail through Outlook web access
Find out customer's home server/db. Check the server to see the last date files were indexed. Confirm customer's complaint with your finding. If indexing isn't running properly
follow these steps to resolve
1. go to exchange powershell
2. type net stop MSExchangeSearch. this will stop the search service and indexer
3. go to the index directory and delete the index catalog folder. You can delete the catalogs for all storage groups as needed
4. go back to the shell and type net start MSExchangeSearch
You are done. Check to make sure service started and customer is able to search mails via OWA

Thursday, December 18, 2008

customer reports not being able to open attachments via webmail

customer reports not being able to open attachments via webmail
customer must have chosen public at the initial logon in OWA. Public doesn't allow opening of attachments, but private setting does
to resolve, follow these steps:
using adsiedit, set the value of MsExchMailboxFolderSet attribute to 2080374783
This will reset all cas-mailbox values to true except ability to change password over the web

faster way to add x500 for a user

1.copy from a user that already has x500 added
2.find the user that needs x500 added.
3.while in ADUC, properties of user, go to email addresses, and click on New
4.choose custom address
5.paste the x500 dn you copied from the user in step 1 under email address
type x500 for custom type. click OK
you are done!

delete duplicates in Outlook folders

download the tool
install and use it to delete duplicates

Thursday, December 11, 2008

how to turn on diagnostic logging of services in exchange 2007

Use these commands to turn on diagnostic logging for information store
get-eventloglevel (this lists all services that can be logged extensively)

use the powershell commands below to set logging level (lowest, low, medium, expert)
set-eventloglevel -id 'MSExchangeIS\9002 System\General' -level 'expert'
set-eventloglevel -id 'MSExchangeIS\9000 private\General' -level 'expert'

Wednesday, December 10, 2008

customer couldn't find spell check under options in OWA

issue: customer couldn't find spell check under options in OWA
Using powershell, type
set-casmailbox -id mailbox owaspellcheckenabled:$True
Problem is fixed

steps to create shared mailbox for customers

steps to create shared mailbox for customers. Note that ad accounts for shared mailboxes are disabled.
Customers can use shared mailboxes for shared calendaring.
customers should use sharepoint as the preferred method for for shared and collaborative calendaring.
use these steps below to create shared mailbox and assign full access to the owner
step 1 create new user mailbox with console or powershell
step 2 use powershell and type this command to convert mailbox to shared.set-mailbox pep-employees -Type:Shared

step 3  Assign full access to the owner using this command.
get-mailbox -id "ep-events" | add-mailboxpermission -user "ond1" -accessrights 'FullAccess'

Tuesday, December 2, 2008

Connect remotely to the GAL using Entourage

When Entourage is configured to connect to an Exchange account, it uses LDAP to talk to the directory server. Generally if you are outside the office network, you can not connect to the Global Address List without first making a VPN connection into the network.
The solutions below will enable GAL lookups for Entourage connected to Microsoft Exchange server. Please note that these utilities will need to be installed on your MAC

how to connect sharepoint calendar to Outlook 2007

Please see link below:

Tuesday, November 25, 2008

user cannot find conversation history folder in Outlook 2007

Office communicator integrates with Outlook and stores conversations in a seperate folder. User reported he couldn't find the folder
checked and confirmed there was no OCS integration error
Found out conversation history folder was moved inside the task folder. Had to move the folder beneath the mailbox root folder

Monday, November 24, 2008

meeting requests sent to a user gets sent to another outlook user

user A sends meeting request to user B, user C(in a different department) gets the meeting request even though she was not invited. This only happened when meeting request is sent to user B
Problem was fixed by having user A close outlook, re-open Outlook by typing
start, run, Outlook /Cleanrules, close outlook and run Outlook /cleanfreebusy
This fixed the problem. User C no longer received meeting requests sent to User B

Friday, November 21, 2008

Update file distribution service on CAS servers with OAB

use the following commands below to update CAS servers with latest generated OAB
use this 1
Update-FileDistributionService XDIR145 -Type OAB
Get-ClientAccessServer | Update-FileDistributionService -type oab

Wednesday, November 19, 2008

Sending on Behalf Permission for a Resource Room

Create a Outlook profile for the Resource room(s).

1. Click on Start
2. Scroll to Control Panel
3. Click on Mail
4. Click on Show Profiles
5. Uncheck the Prompt for a profile to be used
6. Click on Add and use the name of the resource room
7. Click ok
8. Put a check in the Manually configure server settings or additional server types
9. click Microsoft Exchange
10. Uncheck Using as Cache Exchange Mode
11. Put in the correct server in the Microsoft Exchange    Server box
12. In the User Name field put in the Resource room name and check name
13. Click Next
14. Click Finish

Open the resource room from the drop down room

1. Click on Tool
2. Scroll down to Options
3. Click on the Delegates tab
4. Click Add to add your name
5. Give yourself Editor permissions for the calendar and   Inbox

Import contacts from Excel or Access to Outlook

These are users who keep contacts on an Excel Spreadsheet.
  1. Open Outlook and Click on Contacts
  2. Choose File
  3. Then Import and Export
  4. In the new window that opens, choose Import from another program or file
  5. Click Next
  6. Scroll to the type of Spreadsheet Excel or Access
  7. Click Next
  8. Browse to find the file where you saved
  9. Click Next
  10. Select Contacts (Or the folder in Contacts that you set up if you used a folder)
  11. Click Next
  12. Click Finish

Thursday, November 13, 2008

customer's web mail launches only in lite/basic mode

Issue: customer's web mail launches only in lite/basic mode

more info: customer is using internet explorer. Customer checked in with admin and he/she checked and confirmed cas mailbox is set correctly

cause: customer had checked the "blind and low vision experience" option. If checkd, users get a very limited version of high-contrast web access, seemingly even more limited than the actual Light mode login. 

 Resolution:  Instructed customer to  uncheck the option, after logging in, under Options -> Accessibility.  The Outlook web Premium mode was back

fixing cas-mailboxes running in lite Mode for web experience

A funny Exchange Cmdlet, and how to fix it: Set-CASMailbox

In Exchange 2007 you can implement Outlook Web Access segmentation both server-side and client-side. The server-side segmentation can be done using both the power of the Exchange Management Shell, and the Exchange Management Console. To disable particular features, you will need the set-casmailbox to do so. Please read on
Issue: User can only run Outlook web access(owa) in lite version regardless of browser used
Solution: I have to use the EMS cmdlet Set-CASMailbox, as is stated in Technet "The Set-CASMailbox cmdlet sets client access-related attributes for Microsoft Exchange ActiveSync, Microsoft Office Outlook Web Access, Post Office Protocol version 3 (POP3), and Internet Message Access Protocol version 4rev1 (IMAP4) for a specified user."
When running the cmdlet Get-CASMailbox ivancriekinge | fl, I can see that by default all features are enabled:

So, by running the following cmdlet I believe I'm disabling the ability to change my password using Outlook Web Access:Set-CasMailbox ivancriekinge -OWAChangePasswordEnabled:$False
But, it seems that running the specified line, it seems that all features are disabled...
And if you would on the other hand explicitely enable one feature, the result would be the same, all other features would be set to disabled :-)

Solution = AdsiEdit...
When you check the properties of the mailbox using AdsiEdit, you can see that by running the cmdlet specified above, Exchange has changed the value of the attribute msExchMailboxFolderSet. By default this value is not set for a user, when all features are disabled, the value gets the value of 0.
If we change this value again, the default value would be reinstated.
In order to disable one feature, it's very useful to first use AdsiEdit, or the Shell and set the value of MsExchMailboxFolderSet to 2147483647. And then, use the Set-CASMailbox cmdlet to disable the one feature wanted.
To use the shell, use the following commands:

To reset the value of the parameter to the default <not set>, just run the following line:
Set-QADUser ‘<domainname>/<OU>/username’ -objectattributes @{msExchMailboxFolderSet=$Null}
To set the value of all properties (starting with OWA) to $True, just run the following:
Set-QADUser ‘<domainname>/<OU>/username’ -objectattributes @{msExchMailboxFolderSet=2147483647}

Value of 2080374783 sets all to true except for ability to change password over the web


Ilse, http://www.Proexchange.be, retrieved on November 13, 2008

Wednesday, November 12, 2008

How to Encrypt email messages

Sending and viewing encrypted e-mail messages requires both sender and recipient to share their digital ID (digital ID: Contains a private key that stays on the sender's computer and a certificate (with a public key). The certificate is sent with digitally signed messages. Recipients save the certificate and use the public key to encrypt messages to the sender.), or certificate. This essentially means the recipient is given the private key that matches the sender's public key. Once the parties have shared certificates, sending and viewing encrypted e-mail messages between them is the same as with any other e-mail messages. You can learn about digital IDs here and learn how to get and exchange digital IDs here.


Encrypt a single message

  1. In the message, on the Message tab, in the Options group on the ribbon, click the Encrypt Message Contents and Attachments button Encrypt message and attachment.  Note   If you don't see this button, click the Options Dialog Box Launcher in the lower right corner of the group to open the Message Options dialog box. Click the Security Settings button and in the Security Properties dialog box, select Encrypt message contents and attachments. Click OK and then close the Message Options dialog box.
  2. Compose your message and send it.
Encrypt all outgoing messages
Choosing to encrypt all outgoing messages means, in effect, your e-mail is encrypted by default. You can write and send messages the same as with any other e-mail messages, but all potential recipients must have your digital ID to decode your messages.
  1. On the Tools menu, click Trust Center, and then click E-mail Security.
  2. Under Encrypted e-mail, select the Encrypt contents and attachments for outgoing messages check box.
  3. To change additional settings, such as choosing a specific certificate to use, click Settings.
  4. Click OK twice.

Friday, November 7, 2008

How to get messages sent from Delegates to appear in the Proxy’s Sent Items folder


When a delegate sends email as a delegate to a Proxy account, sent items are retained in the delegate's  Sent Items folder.  Use the instructions below to setup Outlook to also keep sent items in proxy's account

 Step 1: Proxy sets up a Rule to move these messages to their Sent Items

While logged into the Proxy account, a rule can be set up that automatically moves certain messages.  To do this, first select Tools then Rules and Alerts… and then click on the New Rule… button.
The Rules Wizard default is to “Start creating a rule from a template”.  The Step 1 default is to “Move messages from someone to a folder” – both of these settings are fine.

 In the Step 2 window click on “people or distribution list” and select the proxy account and all delegates from the address book window that pops up.  Then click on “specified” and select the “Sent Items” folder from the list and then click the OK button.

Click the Next > button.  The top item will be ticked (“move it to the specified folder”).  Do not select any more actions.

Click the Next > button.  Check the box next to “except if my name is in the To or Cc box”.

Click the Next > button.  Give your rule a name e.g. “Move Delegate Sent Items”.  ‘Run this rule on messages already in “Inbox”’ should be unchecked while “Turn on this Rule” should be ticked.

Click the Finish button.  It is important that “OK” or “Apply” are selected from the remaining “Rules and Alerts” window that displays a list of the rules – if “Cancel” is chosen before either of these then the new rule will not be saved.

Step 2: Send Blind Copy to the Proxy

When sending a message as a delegate, using the proxy’s name in the “From…” field, you can use the "Bcc..." field within the original message to copy the manager for whom you are a delegate. The proxy for whom you are a delegate will receive a copy of the original message, but the recipient will not see any names that you list in the "Bcc..." field.

Track Attendee Meeting Responses

To track the responses of your meeting's attendees, do the following:
1.      While in Outlook
2.      Open your calendar.
3.      Locate a meeting you created and open it.
4.      Click on Tracking
5.      Your attendees and their responses are shown here.

Tuesday, November 4, 2008

Using freeware with Email script

Obi asked that I post something about automating a script I used to email a report to a customer from our report sever.  I have a script that runs a report designed in Cognos and attaches it to an email out of Outlook.  The only problem with this is that Outlook security patch asks if it's ok for the program to send an email on my behalf, defeating the purpose of automation.  After doing some asking and some research, there is a freeware program called ClickYes that my lan admin agreed to load on our sever.  The strict purpose of this freeware is to click yes to the security question mentioned above.  Feel free to email me with any questions or if you'd like to see how I set it up.

troubleshooting indexing issues in Outlook 2007

Close Outlook.

Locate a utility program on your computer called FIXMAPI.EXE. The easiest way to find it is to search for it with Windows Find. When found, double-click it to run it. It will probably run quickly and may not produce any visible results.

Restart your computer.

Start Outlook, re-index and see if the problem is resolved

Monday, October 27, 2008

How to Re-Create the "Unread Mail" Search Folder

Customer reported that they deleted the "Unread Mail" which is a search folder located under "Search Folders" by default. The following URL contains instructions on how to recreate:


Thursday, October 23, 2008

How to schedule a powershell script

How to Schedule a powershell script
Here is how you can schedule a Windows Powershell Script:
The first thing you need to do is make sure that Powershell is set to execute Powershell scripts,
instead of only allowing interactive commands to be run in the Powershell environment.

Type the following at the Powershell command prompt:

set-executionpolicy RemoteSigned

This will allow the system to run Powershell scripts that are created locally (Remote Powershell scripts that may be downloaded must be signed).
Once this is done, you can create your Powershell script using notepad. Just make sure you name the file with an extension of .ps1 .
Now to run the script outside of its Powershell environment you type a command similar to the following:

powershell -command "& script.ps1' "

Just put the above command into a .bat or .cmd file and schedule it like you would normally schedule a script to be run with Windows task scheduler.
Now you can enjoy the weekend!

Wednesday, October 22, 2008

Using Export-Mailbox Powershell Command

Import/Export-Mailbox powershell cmdlets have replaced Exmerge. Below are various ways to use export-mailbox command to export to PST file.
note: you will need these rights to perform these tasks
  • Exchange Server Administrators role and local Administrators group for the source server and the target server
  • Full access to the source and target mailboxes
1. export contacts folder from a user's mailbox
Export-Mailbox -Id obitest11 -IncludeFolders '\contacts' -PSTFolderPath C:\pstfiles\obitest11.pst
2. export sent items from a user's mailbox
Export-Mailbox -Id obitest11 -IncludeFolders '\sent items' -PSTFolderPath C:\pstfiles\obitest11.pst
3. Export data received between june 14th, 2007 through 6/14/2008
Export-Mailbox -Id obitest11 -StartDate "06/14/07" -EndDate "06/14/08" -PSTFolderPath C:\PSTFiles\obitest11.pst
4. To use filters to specify which items in the source mailbox to include in the export, run the following command:
Export-Mailbox -Identity obitest11 -TargetMailbox ExportMailbox -TargetFolder MyData -ContentKeywords "merger" -AttachmentFilenames "*orgchart*" -StartDate "03/01/2006 12:01:00" -RecipientKeywords tony@domain.edu
5. Use this export-mailbox command to archive deleted items to pst and delete the "deleted items folder" contents on server mailbox
Export-Mailbox -Id obitest11 -IncludeFolders '\deleted items' -PSTFolderPath C:\pstfiles\obitest11.pst -DeleteContent
6. Export entire mailbox to PST file
Export-Mailbox -id obitest11 -PSTFolderPath C:\pstfiles\obitest11.pst
7. Import entire mailbox to PST file
Import-Mailbox -id obitest11 -PSTFolderPath C:\pstfiles\obitest11.pst 

Outlook 2007 Command Line switches

Command-line switches for Microsoft Office Outlook 2007
Microsoft Windows XP or Microsoft Windows Server 2003
§ Click the Windows Start button, and then click Run.
In the Run dialog box, type a quotation mark, enter the full path for the outlook.exe file, and then type another quotation mark. Alternatively, click Browse to locate and select the file. In this case, the quotation marks are supplied automatically.
After the closing quotation mark, type a space, and then type the switch. For example, you might type:
"c:\program files\microsoft office\office12\outlook.exe" /nopreview

  • Available switches
    Creates an item with the specified file as an attachment.
    * "c:\program files\microsoft office\office12\outlook.exe" /a "c:\my documents\labels.doc"
    If no item type is specified, IPM.Note is assumed. Cannot be used with message classes that are not based on Outlook.
    /altvba otmfilename
    Opens the VBA program specified in otmfilename, rather than %appdata%\microsoft\outlook\vbaproject.otm.
    /c messageclass
    Creates a new item of the specified message class (Outlook forms or any other valid MAPI form).
    * /c ipm.activity creates a Journal entry
    * /c ipm.appointment creates an appointment
    * /c ipm.contact creates a contact
    * /c ipm.note creates an e-mail message
    * /c ipm.stickynote creates a note
    * /c ipm.task creates a task
    Prompts for the default manager of e-mail, news, and contacts.
    Deletes any custom category names that you have created. Restores categories to the default names.
    Starts Outlook and deletes client-based rules.
    Deletes the logging records saved when a manager or a delegate declines a meeting.
    Resets all Search Folders in the Microsoft Exchange mailbox for only the first profile opened.
    Clears and regenerates free/busy information. This switch can be used only when you are able to connect to the server running Exchange.
    Removes invalid profile keys and re-creates default registry keys where applicable.
    Clears and regenerates reminders.
    All previous roamed preferences are deleted and copied again from the local settings on the computer where this switch is used. This includes the roaming settings for reminders, free/busy grid, working hours, calendar publishing, and RSS rules.
    Starts Outlook and deletes client-based and server-based rules.
    Starts Outlook and deletes server-based rules.
    Removes all RSS, Internet Calendar, and SharePoint subscriptions from Account Settings, but leaves all the previously downloaded content on your computer. This is useful if you are unable to delete one of these subscriptions within Office Outlook 2007.
    Overrides the programmatic lockout that determines which of your computers (when running Outlook simultaneously) processes meeting items. The lockout process helps prevent duplicate reminder messages. This switch clears the lockout on the computer it is used, enabling Outlook to process meeting items.
    Deletes the subscription messages and properties for subscription features.
    Restores default views. All custom views that you created are lost.
    Used without command-line parameters for standard OLE co-create.
    /f msgfilename
    Opens the specified message file (.msg) or Microsoft Office saved search (.oss).
    Opens the Advanced Find dialog box.
    Starts Outlook as if it were run for the first time.
    /hol holfilename
    Opens the specified .hol file.
    /ical icsfilename
    Opens the specified .ics file.
    /importprf prffilename
    Starts Outlook and opens/imports the defined MAPI profile (*.prf). If Outlook is already open, queues the profile to be imported on the next clean start.
    /launchtraininghelp assetid
    Opens a Help window with the Help topic specified in assetid displayed.
    /m emailname
    Provides a way for the user to add an e-mail name to the item. Only works in conjunction with the /c command-line parameter.
    * Outlook.exe /c ipm.note /m emailname
    Starts Outlook without loading outcmd.dat (customized toolbars).
    Starts Outlook with extensions turned off, but listed in the Add-In Manager.
    Starts Outlook with the Reading Pane off.
    /p msgfilename
    Prints the specified message (.msg).
    /profile profilename
    Loads the specified profile. If your profile name contains a space, enclose the profile name in quotation marks (" ").
    Opens the Choose Profile dialog box regardless of the Options setting on the Tools menu.
    Starts Outlook by using an existing Outlook window, if one exists. Used in combination with /explorer or /folder.
    Starts Outlook and and initiates the following commands on the default mailbox:
    * Upgrades colored For Follow Up flags to Office Outlook 2007 color categories.
    * Upgrades calendar labels to Office Outlook 2007 color categories.
    * Adds all categories used on non-mail items into the Master Category List.
    Note This is the same command as Upgrade to Color Categories in each Outlook mailbox properties dialog box.
    Restores missing folders at the default delivery location.
    Resets default folder names (such as Inbox or Sent Items) to default names in the current Office user interface language.
    For example, if you first connect to your mailbox in Outlook by using a Russian user interface, the Russian default folder names cannot be renamed. To change the default folder names to another language, such as Japanese or English, you can use this switch to reset the default folder names after you change the user interface language or install a different language version of Outlook.
    Empties the form regions cache and reloads the form region definitions from the Windows registry.
    Clears and regenerates the Navigation Pane for the current profile.
    Resets all Instant Search criteria so that the default set of criteria is shown in each module.
    Removes all shared folders from the Navigation Pane.
    Clears and regenerates the To-Do Bar task list for the current profile. The To-Do Bar search folder is deleted and re-created.
    Opens Outlook and displays the remote procedure call (RPC) connection status dialog box.
    Starts Outlook without Microsoft Exchange Client Extensions (ECE), the Reading Pane, or toolbar customizations. Component Object Model (COM) add-ins are turned off.
    Starts Outlook with the Reading Pane off.
    Starts Outlook with Microsoft Exchange Client Extensions (ECE) turned off, but listed in the Add-In Manager. Component Object Model (COM) add-ins are turned off.
    Starts Outlook without loading outcmd.dat (customized toolbars).
    /select foldername
    Starts Outlook and opens the specified folder in a new window. For example, to open Outlook and display the default calendar, use: "c:\program files\microsoft office\office12\outlook.exe" /select outlook:calendar.
    /share feed://URL/filename
    /share stssync://URL
    /share web://URL/filename
    Specifies a sharing URL to connect to Outlook. For example, use stssync://URL to connect a Microsoft Windows SharePoint Services 3.0 list to Outlook.
    Starts Outlook, forces a detection of new meeting requests in the Inbox, and then adds them to the calendar.
    /t oftfilename
    Opens the specified .oft file.
    /v vcffilename
    Opens the specified .vcf file.
    /vcal vcsfilename
    Opens the specified .vcs file.
    /x xnkfilename
    Opens the specified .xnk file.