Monday, July 11, 2011

Offline Address book (OAB) Generation in Exchange and Outlook 2010

Offline Address book (OAB) Generation in Exchange and Outlook 2010

Offline Address book allows users to download the address book offline into the local machine. This local copy of the OAB File is used by outlook lookups when you are not connected to the network (working offline). It’s a complete copy of the global Address book.

I will try and explain how the OAB is generated, synchronized and made available for distribution to outlook users.

One Mailbox Server in the Organization is identified as OAB Generation Server. This is usually first mailbox server deployed in the organization or any mailbox server assigned with the OAB generation role during the later stage.

OABGen service running on the mailbox server helps to generate, creates and update all OAB files. OABGen service is part of the System Attendant Service. Any OAB files that are generated by default will be located in path “\Program Files\Microsoft\Exchange Server\V14\ExchangeOAB”.

OABGen communicates with the active directory and generates the address book for all the mailbox enabled users accounts, contact and other exchange resources in the Exchange organization. The files are compressed file with the extension .LZX format.

Now let’s I’m going to attempt and explain how OAB is distributed to the clients ?

There are two ways for Distribution in Exchange 2010. They are through web based distributions and through public folder distribution. Web based distribution is only supported with outlook 2007 clients and higher. OAB distribution through public folder is done by Exchange 2003 and is supported by all versions of outlook.

To keep this short and meaningful, I’m only going to talk about the web based distribution as public folder distribution is old news and not used anymore. Plus we are upgrading all outlook clients to Outlook 2010.

OAB files are generated in Exchange 2010 Mailbox server and outlook do not connect directory to the mailbox servers anymore. The solution approach is to use Client Access Server role with web based distribution. On the Client Access Server, a virtual directory called OAB runs with in the default web site. This virtual Director helps in distributing the OAB file.

How does the OAB virtual directory gets the OAB data files from the mailbox server ?

This is done by Microsoft Exchange File Distribution Service running on the Client access Servers. Microsoft Exchange File Distribution Servers polls the OABGen Server and copies the OAB data from the mailbox servers to CAS server. Once the complete OAB files are copied, if any data is then updated only that data is synchronized with CAS server. The synchronization or pol frequency is 8 hrs by default and you can change it if required using the following PowerShell cmdlets.

Set-OABVirtualDirectory "OAB (Default Web Site)" -PollInterval 360

If you get curious and wanted to know how the Web based distribution looks like. hold CTRL key and right click on outlook Icon system tray and Select “Email auto configuration” option from the menu.

Enter the User email address and password and click on Test. On the result tab you should be able to see what the OAB URL your outlook is connected to download the OAB from Exchange.

This is the quick info on how the OAB work in Exchange 2010. I hope this article helps you.

What are MailTips and what can be set in Exchange 2010

Mailtips are informative messages which come up when a user composes a new message.

For example, if you are going to send an email to a user whose mailbox is full, you are going to get an NDR saying that the destination user’s mailbox is full.

Now mailtip will give this when you are composing your message itself, so you don’t have to really send that email out.

Another example is, by mistake, if you are able to send an email to a large distribution list with 1000s of members in it, mailtip will warn you about it.

MailTip Scenarios

Below are the different scenarios possible.

Invalid Internal Recipient

The Invalid Internal Recipient MailTip is displayed if the sender adds a recipient that appears to be internal to the organization but doesn’t exist in Active Directory.

This could happen if the sender addresses a message to a user who is no longer with the company but whose address resolves due to name resolution cache or an entry in the sender’s Contacts folder. It can also happen if the sender types an SMTP address with a domain for which Exchange is authoritative and the address doesn’t resolve to an existing recipient.

The MailTip indicates the invalid recipient and gives the sender the option to remove the recipient from the message.

Mailbox Full

The Mailbox Full MailTip is displayed if the sender adds a recipient whose mailbox is full and the Exchange organization administrator has implemented a Prohibit Receive restriction for mailboxes over a specified size.

The MailTip indicates the recipient whose mailbox is full and gives the sender the option to remove the recipient from the message.

The MailTip is accurate at the time of display. If the message isn’t immediately sent, the MailTip will be updated every two hours. This also applies to messages that were saved in the Drafts folder and reopened after two hours.

Automatic Replies

The Automatic Replies MailTip is displayed if the sender adds a recipient who has turned on automatic replies.

The MailTip indicates the recipient has automatic replies turned on and also displays the first 250 characters of the automatic reply configured by the recipient.

The MailTip is accurate at the time of display. If the message isn’t immediately sent, the MailTip will be updated every two hours. This also applies to messages that were saved in the Drafts folder and reopened after two hours.

Custom

A custom MailTip is displayed if the sender adds a recipient for whom a customized MailTip is configured.

A custom MailTip can be useful for providing specific information about a recipient. For example, you can create a custom MailTip for a distribution group explaining its purpose to reduce its misuse.

By default, custom MailTips aren’t displayed if the sender isn’t allowed to send to that recipient. In that case, the Restricted Recipient MailTip is displayed. However, you can change this configuration and have the custom MailTip also display. For more information about configuring custom MailTips, see Configure Custom MailTips for Recipients.

Restricted Recipient

The Restricted Recipient MailTip is displayed if the sender adds a recipient for which delivery restrictions are configured prohibiting this sender from sending messages.

The MailTip indicates the recipient to which the sender isn’t allowed to send messages and gives the sender the option to remove the recipient from the message. It also clearly informs the sender that the message won’t be delivered if sent.

If the restricted recipient is an external recipient, or if it’s a distribution group that contains external recipients, this information is also provided to the sender. However, the following MailTips, if applicable, are suppressed:

  • Automatic Replies
  • Mailbox Full
  • Custom MailTip
  • Moderated Recipient
  • Oversize Message

External Recipients

The External Recipients MailTip is displayed if the sender adds a recipient that’s external, or adds a distribution group that contains external recipients.

This MailTip informs senders if a message they’re composing will leave the organization, helping them make the correct decisions about wording, tone, and content.

By default, this MailTip is turned off. You can turn it on using the Set-TransportConfig cmdlet. For details, see Configure Organizational Settings for MailTips.

Large Audience

The Large Audience MailTip is displayed if the sender adds a distribution group that has more than the large audience size configured in your organization. By default, Exchange displays this MailTip for messages to distribution groups that have more than 25 members. For information about configuring the large audience size for your organization, see Configure Organizational Settings for MailTips.

The size of distribution groups isn’t calculated each time. Instead, the distribution group information is read from the Group Metrics data. For more information about Group Metrics, see Understanding Group Metrics.

Moderated Recipient

The Moderated Recipient MailTip is displayed if the sender adds a recipient that’s moderated.

The MailTip indicates which recipient is moderated and informs the sender that this may result in delay of the delivery.

If the sender is also the moderator, this MailTip isn’t displayed. It’s also not displayed if the sender has been explicitly allowed to send messages to the recipient (by adding the sender’s name to the Accept Messages Only From list for the recipient).

Reply-All on Bcc

The Reply-All on Bcc MailTip is displayed if the sender receives a Bcc copy of a message and selects Reply to All.

When a user selects Reply to All to such a message, the fact that the user received a Bcc of that message is revealed to the rest of the audience to which the message was sent. In almost all cases, this is an undesirable situation, and this MailTip informs the user of this condition.

Oversize Message

The Oversize Message MailTip is displayed if the message the sender is composing is larger than configured message size limits in your organization.

The MailTip is displayed if the message size violates one of the following size restrictions:

  • Maximum send size setting on the sender’s mailbox
  • Maximum receive size setting on the recipient’s mailbox
  • Maximum message size restriction for the organization
  • Maximum Request Length setting (for Microsoft Office Outlook Web App only)

Check below screenshot, i tried to email an internal user, and that user is currently disabled, so it says that the user is disabled.

Description: 1

To enable mailtips, you can use below cmdlet:

1

Set-OrganizationConfig -MailTipsAllTipsEnabled $true

To customise large audience sise setting for mail tip, try below cmdlet.

1

Set-OrganizationConfig -MailTipsLargeAudienceThreshold 50

Meaning that when you try to send an email to more than 50 users, it will alert you via mailtip.

Monday, December 21, 2009

HOWTO: OCS and Exchange Remote Connectivity tests

Exchange Sever
https://www.testexchangeconnectivity.com/


Office Communications Server (OCS)
https://www.testocsconnectivity.com/

Thursday, August 20, 2009

Virtualising existing domain controllers


Against VMwares recommendations I written up the safest way to virtualise a Domain Controller without demoting it to a standlone server as described here.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006996


Part 1. Install VM Converter

1. Install the standalone VM converter tool on trhe domain controller

Part 2 Boot server in Directory Recovery services mode

1. On your machine, select Run from the Start menu, type Mstsc /console, and click OK.

2. Type the FQDn of the DC

3. Log on to the server using a Domain admin account

4. On the DC, select Run from the Start menu, type sysdm.cpl, and click OK.

5. On the Advanced tab, click Settings in the Startup and Recovery section. Click Edit. This opens the boot.ini file in Notepad.

6. Add the following line to the end of the boot.ini file: /SAFEBOOT:DSREPAIR Save and close the boot.ini file.

7. Disable the FRS services

8. Reboot the server.

9. Rdp to the server again (make sure you use the /console switch)

10. When you reconnect, the server should state that it’s in safe mode. Log on using the recovery console account

Part 3 Convert the domain controller

1. Use the Vmconvertor to convert the server

2. Resize disks as appropriate

3. Once conversion is complete shutdown the physical server and physically disconnects it from the network and do not reconnect for any reason!

Part 4 Clean up new virtual DC

1. Boot the new VM server in a network Isolated state the server should still be DSRM mode as we haven't removed the /SAFEBOOT:DSREPAIR from the boot .ini

2. Uninstall all HP software except HP Data Protector or other providor software

3. remove hidden Nics using Devcon http://support.microsoft.com/kb/269155

4. Assign the correct server to the VM NIC. Very important as this is a DNS server

5. Reboot server

6. Check event logs for hardware related issues

7. If all looks good remove the /SAFEBOOT:DSREPAIR from the boot.ini

8. Reenable the FRS services

9. Reboot the server and place back on the network. ( From this point forward we cannot role back to the original server)

Part 5.

1 . Check replication!

2. Check FRS Replication! If required do a non authoritative restore of Sysvol http://support.microsoft.com/kb/840674

3. Destroy the original Domain Controller!!!

4. Never Clone a DC as a Backup!!!


Cheers

Steve

Sunday, July 12, 2009

How to find and kill a hung VM on ESX 3.5

http://communities.vmware.com/message/245617;jsessionid=AC54B73461657AECCF0CB98763CE2C2C

First you must find the PID

ps auxfww | grep Name_of_the_VM

Then

Try first

vmware-cmd /path/to/config/file.vmx stop soft

try Second
vmware-cmd /path/to/config/file.vmx stop hard

kill Techniques:
kill

If the above doesn't work you may need to issue a kill –9

kill -9


Monday, May 18, 2009

Powershell script to check for expired certificates

Had a request today to produce a report on all expired certificates on a server.At first I thought this would difficult but it turns out to be quite simple.

Once you get to the power shell the first thing you need to move into the certificate store.

cd cert:

You could list all certificates by simply running gci -recurse. For this exercise I was only interested in self sign certificates issued by "MyCompany"

gci -recurse | where {$_.Issuer -like "*MyCompany*"} . This command will produce a list of certificates where the issuer contains MyCompany so "Super MyCompany" or "MyCompany is tops" will be in the results list.

We can then reduce the output by only asking for only properties we're interested in. In this case instead of using format-table I've outputed the results to html using the convertTo-html cmdlet.
gci -recurse | where {$_.Issuer -like "*MyCompany*"} |ConvertTo-Html Subject, Issuer, Thumbprint, FriendlyName, Notbefore, Notafters |set-content c:\certs\certsreport.htm

This is all you need but if you want a report of already expired certificates we can filter the results by excluding any certificates the have expiry date less than today.

To do this set variabe with the value of todays date this can done with the following command.

$date=date

Here's the full code to produce html report of all expired certificates. Make sure the c:\certs dir exists.

cd cert:
$date=date
gci -recurse | where {$_.Issuer -like "*MyCompany*"} |where {$_.NotAfter -gt $date} |ConvertTo-Html Subject, Issuer, Thumbprint, FriendlyName, Notbefore, Notafters |set-content c:\certs\certsreport.htm

If want to send this in a email as an attachment here's the code.

cd cert:
$date=date
gci -recurse | where {$_.Issuer -like "*Clayton*"} |where {$_.NotAfter -gt $date} |ConvertTo-Html Subject, Issuer, Thumbprint, FriendlyName, Notbefore, Notafters |set-content c:\certs\certsreport.htm

$filename = “c:\certs\certsreport.htm”
$smtpServer = “smtp.cu.claytonutz.com”

$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment($filename)
$smtp = new-object Net.Mail.SmtpClient($smtpServer)

$msg.From = “steve@mycompany.com”
$msg.To.Add(”destination@mycompany”)
$msg.Subject = “Certs Reports”
$msg.Body = “Expired Certificates”
$msg.Attachments.Add($att)

$smtp.Send($msg)

Regards,

Steve

Thursday, April 16, 2009

VI Client Open Console Attempt Fails

“error connecting: can not connect to host x.x.x.x: a connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.”

Mware Communities: Getting error when opening console … is a thread that was started back in April 2006 but has it’s most recent reply (as of this writing) from May 2008. It turns out that this problem has been an issue starting with ESX3.0 and has continued across several ESX versions. It is basically unexplained. There does not seem to be a solid understanding of what conditions cause this problem. There are replies from users who have experienced the issue whether connected to an ESX host or to VirtualCenter. There is a resolution that makes it go away, however.

To fix the problem add the following line to the /etc/vmware/config file:

vmauthd.server.alwaysProxy = “TRUE”

I used nano from the Service Console to add the line to the file, and the problem instantly went away. I did not even have to restart any services. The steps for using nano to change this file are:

  1. type #nano /etc/vmware/config
  2. Add the line to the end of the file
  3. Press ctrl+x to save the changes
  4. enter “yes” when prompted
  5. hit enter to overwrite the file with the same file name