Pages

Monday, June 28, 2010

How to Disable BES / BAS 5 Redirection

In BAS 5, select user.

In Messaging configuration section, click Default configuration.

Click Edit user.

Change Redirect to BlackBerry device from Yes to No.

Click Continue to user information edit.

Click Save all.

Thursday, June 24, 2010

Delete a Service

Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).

However, should it be necessary to manually remove a service:

  1. Run Regedit or regedt32.
  2. Fnd the registry entry:

            HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services

  1. Find the service there and delete it.
    You may wish to look at the keys and see what files the service was using and perhaps delete them also.

or

From CMD

 
  1. Start->Run and type cmd in the Open: line. Click OK.
  2. Type: sc delete <service name>
  3. Reboot the system

 

Note:

  • You will have to reboot before the list gets updated in server manager.
  • I have had it pointed out that some programs are cunning and prevent you from removing their service easily. (For example the spyware\malware called ‘Command Service’ - "cmdService".) These change the permissions to make it more difficult for you to delete them. For these you will have to right click on the ‘service’ in regedit (regedt32), go to permissions and grant the administrator full control before the service can be deleted.

How to install or upgrade the MAPI Interface Client and CDO 1.2.1

Overview

To install the Microsoft Exchange Server Messaging Application Programming Interface (MAPI) Client and Collaboration Data Object (CDO) 1.2.1 without Microsoft Exchange System Manager or the Microsoft Exchange Server MAPI Client and CDO previously installed, complete the following steps:

  1. Download ExchangeMapiCdo.EXE from www.microsoft.com.
  2. Double-click ExchangeMapiCdo.EXE to extract the ExchangeMapiCdo.MSI file.
  3. Double-click ExchangeMapiCdo.MSI to open the file and follow the prompts to install the Microsoft Exchange Server MAPI Client and CDO 1.2.1.
  4. Restart the BlackBerry Enterprise Server.

Important: Restarting certain BlackBerry Enterprise Server services delays email message delivery to BlackBerry smartphones. For more information, see KB04789.

Update a previous MAPI Client to Microsoft Exchange Server MAPI Client and CDO 1.2.1

To update to the Microsoft Exchange Server MAPI Client and CDO 1.2.1 from a MAPI client pack or Microsoft Exchange System Manager, complete the following steps:

  1. Download ExchangeMapiCdo.EXE from www.microsoft.com.
  2. Stop all BlackBerry Enterprise Server and Windows NT® services or processes that use the MAPI32.DLL file. For more information, see KB13718.
  3. Remove the Microsoft Exchange System Manager or the Microsoft Exchange Server MAPI Client and CDO's installed on the computer using the Add or Remove Programs tool in Control Panel.
  4. Locate the following files and rename them with the file extension .old:
    • MAPI32.DLL
    • EMSMDB32.DLL
    • EMSABP32.DLL
    • CDO.DLL
      • NOTE: If dealing with a 64-bit Operating System DO NOT modify the above files if located in the C:\Windows\SysWOW64 directory.
  5. Locate the fixMAPI.exe file in the System32 directory.
  6. Double-click the fixMAPI.exe file.
  7. Double-click ExchangeMapiCdo.EXE to extract the ExchangeMapiCdo.MSI file.
  8. Double-click ExchangeMapiCdo.MSI to and follow the prompts to install the Microsoft Exchange Server MAPI Client and CDO 1.2.1
  9. Start all the BlackBerry Enterprise Server services.
  10. Update the MAPI Profile by following:
For BlackBerry Enterprise Server 4.0, 4.1, and 5.0
  1. Go to Start > Programs > BlackBerry Enterprise Server > BlackBerry Server Configuration.
  2. On the BlackBerry Server tab, click Edit MAPI Profile
  3. Type the name of the Microsoft Exchange Server and the BlackBerry Enterprise Server service account mailbox name.
  4. Click Check Name.
  5. Click Apply > OK.

Important: Restarting certain BlackBerry Enterprise Server services delays email message delivery to BlackBerry smartphones. For more information, see KB04789.

Note: The Microsoft Exchange 2000 or Microsoft Exchange 2003 CD-ROM might be required in order to uninstall Microsoft Exchange System Manager. If the end user license agreement does not appear during installation of the Microsoft Exchange Server MAPI Client and CDO 1.2.1, or the MAPI32.DLL file is 600 KB or more, the Microsoft Exchange Server MAPI Client and CDO 1.2.1 did not install correctly. The installation appears to have completed successfully, but the Program Files\ExchangeMAPI directory is not installed and the MAPI client is not updated. This occurs if all of the MAPI files were not renamed with the .old file extension before installation.


Additional Information

To verify the successful installation of the Microsoft Exchange Server MAPI Client and CDO 1.2.1, complete the following steps:

  1. Verify that the ExchangeMAPI folder was created in the Program Files folder. The ExchangeMAPI folder contains a selection of .DLL files.
  2. In the BlackBerry Messaging Agent (MAGT) logs, verify the following [ENV] environment variables are reported:
    • [ENV] MAPI32.DLL: C:\Windows\System32\MAPI32.DLL, Version: 1.0.2536.0
    • [ENV] CDO.DLL: C:\Program Files\ExchangeMAPI\ Version: CDO.DLL, 6.5.8165.0
    • [ENV] EMSMDB32.DLL: C:\Program Files\ExchangeMAPI\ EMSMDB32.DLL, Version: 6.5.8165.0

Note: The file directories listed in the logs contain the version of the files, and the currently available version may be newer than what is listed above.

From http://www.blackberry.com/btsc/viewContent.do?externalId=KB15779&sliceId=1

Wednesday, June 23, 2010

Windows 7 – Moving Program to System Tray Instead of Task Bar When Minimized

AIM

    1. Menu->Settings->Buddy List

    2. Check box for “Hide the taskbar icon when I close the Buddy List”

MediaMonkey

    1. Tools->Options->General

    2. Uncheck “Always show tray icon”

    3. Select Minimize to MicroPlayer

Skype

    1. Navigate to C:\Program Files\Skype\Phone

    2. On the Compatibility tab Check box for “Run this program in compatibility mode for”

    3. Select Windows Vista (Service Pack 2)

Winamp

    1. Options->Preferences->General Preferences

    2. Uncheck Show Winamp in Taskbar

    3. Check Show Winamp in System Tray

Windows Live

    1. Navigate to C:\Program Files \Windows Live\Messenger

    2. Right click msnmsgr.exe and select properties

    3. On the Compatibility tab Check box for “Run this program in compatibility mode for”

    4. Select Windows Vista (Service Pack 2)

Yahoo

    1. Messenger->General

    2. Check box for “Remove the taskbar button when I minimize the main window”

Thursday, June 17, 2010

Outlook 2007 / 2010 Search Criteria / Operators

The following table shows examples of searches you might find useful. The search query syntax, available when the Instant Search (Instant Search: A Search feature that provides search results quickly with word highlighting as you type. The Instant Search pane is always available in Mail, Calendar, Contacts, Tasks, Notes, Folder List, and Journal.) feature is enabled, follows this basic form: keyword:your search criteria value.

For example, from:bobby

You can also use logical operators AND, NOT, OR, <, >, =, and so forth to refine your search, and these are noted in the table. Logical operators must be typed in uppercase letters.

Note   The search query syntax is created automatically and displayed in the Instant Search box when you use the Query Builder described in the previous section.

Type this

To find this
bobby Items containing bobby, BOBBY, BoBby, or any other combination of uppercase and lowercase letters. Instant Search is not case sensitive.
bobby moore Items containing both bobby and moore, but not necessarily in that order.
bobby AND moore Items containing both bobby and moore, but not necessarily in that order. Note that logical operators such as AND, NOT, and OR must be in uppercase letters.
bobby NOT moore Items containing bobby, but not moore.
bobby OR moore Items containing bobby, moore, or both.
"bobby moore" Items containing the exact phrase bobby moore. Note the use of double quotes so that the search results match the exact phrase within the quotes.
from:"bobby moore" Items sent from bobby moore. Note the use of double quotes so that the search results match the exact phrase within the quotes.
from:"bobby moore" about:”status report” Items sent from bobby moore where status report appears in the subject line, body, and attachment contents. Note the use of double quotes so that the search results match the exact phrase within the quotes.
hasattachment:yes Items that have attachments. You can also use hasattachment:true to get the same results.
attachments:presentation.pptx Items that have attachments named presentation.pptx or if the attachment contains presentation.pptx within its contents.
subject:"bobby moore" Items whose subject contains the phrase bobby moore.
subject:bobby moore Items with bobby in the subject line and with moore anywhere else in the document.
cc:"bobby more" Items in which the display name bobby moore is on the Cc line.
cc:bobbymoore@contoso.com Items in which the e-mail address bobbymoore@contoso.com is on the Cc line.
bcc:bobby Items in which bobby is on the Bcc line.
messagesize:<10 KB Items whose size is less than 10 kilobytes. Note the use of the "less than" comparison operator (<).
messagesize:>5 MB Items whose size is larger than 5 megabytes. Note the use of the "greater than" comparison operator (>).
received:=1/1/2006 Items that arrived on 1/1/2006. Note the use of the "equals" comparison operator (=).
received:yesterday Items that arrived yesterday. Instant Search also recognizes the follow date values:
  Relative dates:    For example, today, tomorrow, yesterday
  Multi-word relative dates:    For example, this week, next month, last week, past month, coming year
  Days: Sunday, Monday ... Saturday
  Months: January, February ... December
received:last week Items that arrived last week. Note that if you run this query again a month from now you will obtain different results because it is a time relative query.
due:last week Items that are flagged for follow up a due date.
messagesize:tiny Items whose size is less than 10 kilobytes
messagesize:small Items whose size is between 10 and 25 kilobytes
messagesize:medium Items whose size is between 25 and 100 kilobytes
messagesize:large Items whose size is between 100 and 500 kilobytes
messagesize:verylarge Items whose size is between 500 kilobytes and 1 megabyte
followupflag:follow up Items that are flagged for follow up.
messagesize:enormous Items whose size is larger than 5 megabytes
hasflag:true Items that are flagged for follow up.
from:bobby (received:1/7/05 OR received:1/8/05) Items from bobby that arrived on either 1/7/05 or 1/8/05. Note the use of parentheses to group the dates.
received:>=10/1/06 AND received:<=10/5/06 Items that arrived between 10/1/06 and 10/5/06.
received:>10/1/06 AND received:<10/5/06 Items that arrived after 10/1/06 but before 10/5/06.
sent: yesterday Items that you sent yesterday.
to:bobby Items that you sent to bobby when you are searching in the Sent Items folder.
read:no Items that have not been read. You can also use read:false to get the same results.
subject:status received:May Items received from anyone during the month of May (any year) where the subject contains status.
startdate:next week subject:status Calendar items next week where the subject contains status.
is:recurring Calendar items that are recurring.
organizer:bobby Calendar items where bobby is the organizer.
category:business Items that are categorized as business.
firstname:bobby Contacts that contain bobby in the First Name field.
lastname:moore Contacts that contain moore in the Last Name field.
nickname:bobby Contacts that contain bobby in the Nickname field.
jobtitle:physician Contacts that contain physician in the Job Title field.
pager:555-0100 Contacts that contain 555-0100 in the Pager field.
businessphone:555-0100 Contacts that contain 555-0100 in the Business Phone field.
homephone:555-0100 Contacts that contain 555-0100 in the Home Phone field.
mobilephone:555-0100 Contacts that contain 555-0100 in the Mobile Phone field.
carphone:555-0100 Contacts that contain 555-0100 in the Car Phone field.
businessfax:555-0100 Contacts that contain 555-0100 in the Business Fax field.
homefax:555-0100 Contacts that contain 555-0100 in the Home Fax field.
businessaddress:(4567 Main St., Buffalo, NY 98052) Contacts that contain 4567 Main St., Buffalo, NY 98052 in the Business Address field. Note the use of parentheses to enclose the address.
homeaddress:(4567 Main St., Buffalo, NY 98052) Contacts that contain 4567 Main St., Buffalo, NY 98052 in the Home Address field. Note the use of parentheses to enclose the address.
businesscity:buffalo Contacts that contain buffalo in the Business City field.
businesspostalcode:98052 Contacts that contain 98052 in the Business Postal Code field.
street:(4567 Main St) Contacts that contain 4567 Main St in the Business Address Street field. Note the use of parentheses to enclose the address.
homestreet:(4567 Main St) Contacts that contain 4567 Main St in the Home Address Street field. Note the use of parentheses to enclose the address.
birthday:6/4/1960 Contacts that contain 6/4/1960 in the Birthday field.
webpage:www.contoso.com Contacts that contain the URL www.contoso.com in the Web Page Address field.

From:

http://office.microsoft.com/en-gb/outlook-help/learn-to-narrow-your-search-criteria-for-better-searches-in-outlook-HA010238831.aspx

Tuesday, June 15, 2010

Restricting Outlook Client Versions in Exchange 2007

Determining Which Client Versions are in use

Before implementing client version blocking it’s a good idea to know versions are in use.  With this information you can tell which clients need to be upgraded to a newer version before blocking is implemented, or simply which clients will no longer be able to connect after it is implemented.  In Exchange 2007 client version information is retrieved using the Get-LogonStatistics cmdlet.

Get-LogonStatistics accepts a mailbox, a mailbox database, or a server name as input and returns statistics including user name, logon time, last access time, client name, and client version.

For example, to list the client versions used to access a single mailbox, the command is:

Get-LogonStatistics JSmith | ft UserName,ClientVersion,LogonTime

To list the client versions for all clients connecting to a specific server:

Get-LogonStatistics –Server SERVER01 | ft UserName,ClientVersion,LogonTime

To list the client versions for all clients on all mailbox servers, and export the results to a CSV file:

Get-MailboxServer | Get-LogonStatistics | `

Select UserName,ClientName,ClientVersion,LogonTime | `

Export-Csv -Path ExchangeClientVersions.csv

Once you have identified the clients in use in your organisation and taken any remedial action necessary you can move on to blocking any further access by unwanted clients.

Determining Which Client Versions to Block

The client version is determined by the version of Emsmdb32.dll on the client.  This is not necessarily the same as the Outlook version, or the version of any other DLL or executable files.  This table shows the version of Emsmdb32.dll for major releases or updates of Outlook since the release of Office XP.

Release

Emsmdb32.dll Version

Office XP RTM

10.0.2627.1

Office XP SP1

10.0.3416.0

Office XP SP2

10.0.4115.0

Office XP SP3

10.0.6515.0

Office 2003 RTM

11.0.5604.0

Office 2003 SP1

11.0.6352.0        

Office 2003 SP2

11.0.6555.0

Office 2003 SP3

11.0.8161.0

Office 2007 RTM

12.0.4518.1014

Office 2007 SP1

12.0.6211.1000

Office 2007 SP2

12.0.6423.1000

Table 1 - Emsmdb32.dll version by Office release

There are some important points to note:

  • The MAPI client version numbers listed in Table 1, and those in the results of the Get-LogonStatistics cmdlet, are in the format x.0.y.z.  When specifying MAPI versions to be blocked you must use the format x.y.z.  For example, the version number for Outlook 2003 RTM becomes 11.5604.0.

  • When setting per-server restrictions it is very important to avoid restricting clients with version numbers 6.y.z  as Exchange Server makes use of MAPI for server-side component connections and uses MAPI versions within the 6.y.z range (with the version number potentially varying by Exchange component and patch level).  This does not apply to per-mailbox restrictions.

  • Microsoft recommends that at a minimum you block all MAPI clients with version numbers equal to or earlier than 5.3164.0.0.

Single versions are blocked by specifying the version in the format <version>, an open-ended range is blocked by using the format -<version1> or <version2>-, and a specific inclusive range is blocked by using the format <version3>-<version4>.  Multiple sets of client versions can be disabled using a comma or semi-colon separated list.

Range Type

Example

Effect

<version>

11.5604.0

Block the specified MAPI version.

-<version>

-11.0.0

Block the specified version number, and all previous versions.

<version>-

11.0.0-

Block the specified version number, and all newer versions.

<version>-<version>

11.0.0-11.9.9

Block the specified version numbers, and all clients between the specified versions.

Table 2 - Example client version blocking syntax

Some example blocking settings to use:

Blocking Setting

Effect

11.5604.0

Block Outlook 2003 RTM

-5.9.9;7.0.0-11.9.9

Block all clients older than Outlook 2007

12.0.0-

Block all versions of Outlook starting with Outlook 2007 and including all future versions

-5.3164.0

Block Microsoft recommended Outlook versions

-5.99;7.0.0-

Block all MAPI clients, except for Exchange Server components

Table 3 - Example client version blocking settings

Implementing the Blocking Settings

As mentioned earlier, restrictions can be implemented per-server or per-mailbox.  Per-server restrictions are implemented via a registry change, and per-mailbox restrictions are implemented via the Exchange Management Shell – it is not possible to use the Exchange Management Console.

If both server and mailbox restrictions are used the most restrictive combination of both settings applies, additionally a server restriction cannot be overridden by a mailbox setting.

For example:

Server Restriction

Mailbox Restriction

Net Effect

-5.3164.0

-11.9.9

Mailbox can only be accessed using Outlook 2007

-5.9.9;7.0.0-

11.0.0-11.9.9

Mailbox cannot be accessed by any MAPI client (which is not executing on the Exchange server)

Table 4 – Cumulative effect of restrictions

To implement a per-server restriction

Note – Incorrectly editing the registry can cause serious problems that may require you to reinstall your operating system. Problems resulting from editing the registry incorrectly may not be able to be resolved.  Before editing the registry, back up any valuable data. 

You need to be a local administrator on the Exchange server in order to edit the registry.

  1. Start the registry editor on your Exchange 2007 Mailbox server

  2. Locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem registry key.

  3. Right-click ParametersSystem, select New, and then select String value.

  4. Name the new string value “Disable MAPI Clients”.

  5. Right-click Disable MAPI Clients, and then click Modify.

  6. Enter the restriction setting, for example -5.9.9;7.0.0-11.9.9

  7. Close the registry editor

The change will be effective within 15 minutes, or to make it effective immediately you can restart the Microsoft Exchange Information Store service.  Once the change takes effect any existing client connections which do not meet the version requirements will be terminated.

To implement a per-mailbox restriction

The Set-CASMailbox cmdlet is used to implement per-mailbox restrictions.  To use the Set-CASMailbox cmdlet you must be delegated the Exchange Recipient Administrator role.

To prevent a mailbox from using Outlook clients prior to Outlook 2007 the command is:

Set-CASMailbox JSmith -MAPIBlockOutlookVersions "-11.9.9"

To remove a restriction for a mailbox:

Set-CASMailbox JSmith -MAPIBlockOutlookVersions $null

To prevent all mailboxes in a particular database from using clients other than Outlook 2007 RTM:

Get-Mailbox -Database "SERVER01\SG1\Database 1" | `

Set-CASMailbox -MAPIBlockOutlookVersions "-12.4518.1013;12.4518.1015-"

When an Outlook 2003 or Outlook 2007 user tries to connect with a restricted client version they will receive the message “Your Exchange Server administrator has blocked the version of Outlook that you are using. Contact your administrator for assistance.”

Users of older clients will receive the message “Cannot start Microsoft Outlook. The attempt to log on to the Microsoft Exchange Server computer has failed.”

More information on Get-LogonStatistics and Set-CASMailbox can be found in TechNet:

 

Source: http://www.simple-talk.com/sysadmin/exchange/restricting-outlook-client-versions-in-exchange-2007/

Thursday, June 10, 2010

Adding Permissions to Exchange 2010 database

Run these two scripts to have permissions on the database level.

 

Get-MailboxDatabase | Add-ADPermission -User "changename" -AccessRights ExtendedRight -ExtendedRights Receive-As, ms-Exch-Store-Admin

 

Get-MailboxDatabase | Add-ADPermission -User "changename" -AccessRights ExtendedRight -ExtendedRights Send-As, ms-Exch-Store-Admin

Wednesday, June 09, 2010

Exchange 2010 and BESAdmin Permissions

Anytime you have a new Exchange 2010 server or add a new database to Exchange 2010, you will need to run the following. Note that each line needs to be run seperatley.

For Microsoft Exchange 2010
Click Start > Programs > Microsoft Exchange Server 2010 > Exchange Management Shell.
In the command prompt window, type the following two commands and then press Enter:

Get-MailboxDatabase Add-ADPermission -User "BESAdmin" -AccessRights ExtendedRight -ExtendedRights Receive-As, ms-Exch-Store-Admin

Add-RoleGroupMember "View-Only Organization Management" -Member "BESAdmin"

Note: If you create a new mailbox database for Microsoft Exchange you will need to repeat step 2 for Microsoft Exchange 2010.

From

http://www.blackberry.com/btsc/viewContent.do?externalId=KB02276&sliceId=1