Pages

Thursday, December 16, 2010

Using Enable-UMMailbox cmdlet to enable user for UM throws the error message: “A name for the SIP resource identifier (for example, abc@def .com) must be specified.”

I came across an error message today while enabling users for Exchange UM that I thought was worth writing a post about because the message tip didn’t seem to clearly communicate the problem (at least not to me).

Problem

You’ve been using the Enable-UMMailbox cmdlet to enable users all day but you run into the following error message for a user:

[PS] C:\Windows\System32>Enable-UMMailbox -Identity user@domain.com -UMMailboxPolicy "Toronto Default Policy"
Enable-UMMailbox : A name for the SIP resource identifier (for example, abc@def
.com) must be specified.
At line:1 char:17
+ Enable-UMMailbox <<<< -Identity user@domain.com -UMMailboxPolicy "Toronto Default Policy"
[PS] C:\Windows\System32>

image

When I initially saw this message, the first thought I had was that Exchange was complaining about this person not being enabled for SIP but when I checked the user’s account properties, they already had a SIP address:

image

Resolution

After reviewing the users settings, I finally figured out that Exchange was actually complaining that it does not know what extension to give the user because the telephone number field for the user’s Active Directory account was not populated:

image

All I had to do was populate the field with their extension and rerun the PowerShell cmdlet:

image

image

Alternatively, you can also use the -Extensions parameters to specify the extension for the user. For more information, see the Enable-UMMailbox TechNet technical reference: http://technet.microsoft.com/en-us/library/bb676425(EXCHG.80).aspx

PowerShell commands/cmdlet to script the process of assigning an EUM attribute for users

As easy as it is to assign an EUM attribute to a user who is not enabled for Unified Messaging through the Management Console GUI, this method isn’t too practical when you have to enable more than 50 people. So while going through a folder with my old notes for a client where we had to assign over 100 users an EUM attribute because they were not UM enabled, I noticed that I had created a spreadsheet for a script to automate the process. Since I don’t recall writing a post with this, I figure I’d do it so I can reference it for future projects in case I end up losing the spreadsheet.

The way I approached this last year was to create a spreadsheet that generated the following commands:

$mbx = Get-Mailbox userAlias

$mbx.EmailAddresses +="eum:999;phone-context=DialPlanName.domain.com"

$mbx set-mailbox

**The value “999” is an example of an extension.

***I’ve highlighted all the fields that you will need to change in red.

The following is an explanation of what was done for the lines:

$mbx = Get-Mailbox userAlias

Concatenate $mbx = Get-Mailbox with the user’s alias which you can retrieve using LDIFDE or CSVDE.

$mbx.EmailAddresses +="eum:999;phone-context=DialPlanName.domain.com"

Concatenate $mbx.EmailAddress +-="eum: with the user’s extension then concatenate ;phone-context= with your dial plan name with the domain’s FQDN.

$mbx set-mailbox

The line above is just to pipe all the information into the set-mailbox command so no changes are required. Once you’ve created a full list for all the users, you can either just copy and paste the commands into PowerShell or create a ps1 file to execute.

Wednesday, December 15, 2010

How to configure Exchange 2007 Edge Transport Server Whitelists

I got a call from a client earlier tonight because he needed an additional domain added to their Exchange 2007 Edge Transport server’s whitelist. As some of you may already know, there is no place in the Exchange Management Console GUI to append to this list so when the client asked me where the window was, I simply told him I would have to go do it for them when I get home via PowerShell. Since I’ve gone through the exercise to do this tonight, I thought I’d write a post with the considerations and instructions so if I I ever get asked this question again while I’m on the road, I can just point them to this blog post.

Considerations

As I remember, the PowerShell cmdlet does not allow you to append to the list of domains you already have whitelisted which means you’ll need to first extract the current list, copy the domains somewhere (i.e. notepad) then rerun the cmdlet to create the list.

Retrieving the whitelist

To retrieve the list, log onto your Exchange server (not your Edge Transport server), open up PowerShell and type execute the following cmdlet:

Get-ContentFilterConfig FL

More information about this cmdlet can be found here: http://technet.microsoft.com/en-us/library/aa998807.aspx

The cmdlet above will output information similar to the following:

[PS] C:\Documents and Settings\tluk.domain\Desktop>Get-ContentFilterConfig FL

Name : ContentFilterConfig
RejectionResponse : Message rejected as spam by Content Fil
tering.
OutlookEmailPostmarkValidationEnabled : True
BypassedRecipients : {}
QuarantineMailbox :
SCLRejectThreshold : 7
SCLRejectEnabled : True
SCLDeleteThreshold : 9
SCLDeleteEnabled : False
SCLQuarantineThreshold : 9
SCLQuarantineEnabled : False
BypassedSenders : {}
BypassedSenderDomains : {someDomain.com}
Enabled : True
ExternalMailEnabled : True
InternalMailEnabled : False
AdminDisplayName :
ExchangeVersion : 0.1 (8.0.535.0)
DistinguishedName : CN=ContentFilterConfig,CN=Message Hygie
ne,CN=Transport Settings,CN=PatientDire
ct,CN=Microsoft Exchange,CN=Services,CN
=Configuration,DC=domain,DC=loca
l
Identity : ContentFilterConfig
Guid : 5976a079-feba-4464-bc4e-c48a3914a902
ObjectCategory : domain.local/Configuration/Schem
a/ms-Exch-Message-Hygiene-Content-Filte
r-Config
ObjectClass : {top, msExchAgent, msExchMessageHygiene
ContentFilterConfig}
WhenChanged : 10/27/2010 4:35:33 PM
WhenCreated : 7/10/2009 1:01:30 PM
OriginatingServer : dc2.domain.local
IsValid : True

image

I’ve gone ahead and highlighted the field BypassedSenderDomains in red. This is where the whitelisted domains are shown. In this case, there is only 1 domain configured so copy the domain down somewhere such as notepad and continue with using the cmdlet to set the whitelist domains.

Creating the whitelist

As noted earlier, when you execute the cmdlet to add domains to the whitelist, you will overwrite the previous so in this example, let’s say we had the domain: someDomain.com in our whitelist and we would like to add another one named: someOtherDomain to the list. To do this, use the cmdlet:

Set-ContentFilterConfig -BypassedSenderDomains somedomain.com,someotherdomain.com

More information about this cmdlet can be found here: http://technet.microsoft.com/en-us/library/aa996791(EXCHG.80).aspx

Once you’ve executed this command, rerun the cmdlet:

Get-ContentFilterConfig FL

From the displayed information, you should see somedomain.com and someotherdomain.com listed in the BypassedSenderDomains list.

image

Hope this helps anyone out there who may be unsure about how to do this.

Enabling users for Exchange UM displays the informational message: “The value ‘EUM:xxx;phone-context=DialPlan.com’ is already present in the collection.”

For those who have implemented Exchange 2007/2010 Unified Messaging voicemail to operate with OCS 2007 and other phone systems (i.e. Cisco or Nortel), you may know that in order for the auto attendant to be able to look up users who do not have a UM mailbox (i.e. users who are still on another PBX), an EUM attribute must be assigned to that user’s messaging mailbox.

Here’s an example:

image

More information about the EUM attribute can be found here:

http://technet.microsoft.com/en-us/library/aa996927.aspx

“However, a DTMF map won't automatically be created for users who aren't UM-enabled. By using galgrammargenerator.exe with the -u option, you can generate a DTMF map for all users who are mail-enabled but not UM-enabled. This lets users who are mail-enabled but not UM-enabled be reached from the auto attendant when their name or e-mail alias is entered by a caller using DTMF inputs. For more information about the DTMF interface, see Understanding the DTMF Interface.”

What you may also notice if you were like me who is now migrating the rest of the users over from their legacy PBX to OCS is that when you go to their mailbox on Exchange UM and try to enable them for voicemail, you may get the following informational message:

image

image

The value ‘EUM:xxx;phone-context=DialPlan.com’ is already present in the collection.

image

So now you (the reader) might be thinking: “What’s your point?” The reason why I’m writing this post is because I was recently asked about this informational message and how to get around it. The answer is simple: “you don’t have to get around it, just continue with what you’re doing.” This message is just information and if you continue to click OK then the next button, you’ll proceed with the wizard menus and eventually activate this user for Exchange UM. The difference you’ll see is that the wizard will force you to enter the user’s extension:

image

image

image

image

If you feel that this extra click slows down the process a little too much then we can always use the PowerShell cmdlet to enable the user for UM without getting prompted with this informational message:

Enable-UMMailbox –Identity

image

Hope this clarifies this information message for anyone out there who may be wondering if this is going to be a problem.

Troubleshooting duplicate URIs in OCS 2007 R2

I was asked by a friend recently about how I typically troubleshoot duplicate URIs for users who are enabled for Enterprise Voice in OCS 2007 R2 and I was surprised I never thought about writing a post for this since I’ve ran into this issue plenty of times for environments that I don’t manage but would perform configuration changes every few months.

Problem

You’re trying to enable someone for enterprise voice so you navigate to the user’s properties in Office Communications Server 2007 R2 administration console:

image

You file in the URI for the user:

image

However, once you try to apply the settings, you get the following error:

A duplicate Remote Call Control device URI already exists. Please specify a different URI.

image

image

Solution

So what would I do at this point? The first thought I had was: “Well, you could open up every user’s account and figure out who’s using the same URI” but that would be prone to errors and extremely painful if you have thousands of users.

What I typically use to troubleshoot problems such as these is Enterprise Voice Route Helper that is bundled with the Office Communications Server 2007 Resource Kit and the following are the steps I take:

Open up Enterprise Voice Route Helper and navigate to Ad-hoc Test –> Manual and then fill in the Dialed Number field with the URI that you’re having conflicts with (in this example, it’s 370):

image

Various results can be presented when you hit the Test button and for this blog post, I’ll list 2 of them:

Result #1

You get a specific match immediately and know which user is assigned the URI:

image

Result #2

You end up hitting a translation rule that does something with this match (in this case it’s forwarding the call to a gateway):

image

In situations such as these, further troubleshooting will be required because this translation rule you’re hitting is providing a match before OCS matches a user with the assigned URI. What I would do next is to locate this rule in the location profile and modify it:

image

For the purpose of this example, I simply added another “6” to the Phone pattern regular expression so that 306 will no longer match this rule.

Note: This will obviously affect your environment and may end up breaking certain calls to a user so this is recommended to be done after hours.

image

Now go back to Enterprise Voice Route Helper and reload the location profile:

image

Rerun the test and since you no longer have a rule that handles URI tel:+306, you will now see which user has the URI assigned:

image

There are probably other ways of troubleshooting this but I have found this to work for me most of the times I have had to troubleshoot such a problem.

Tuesday, December 14, 2010

Error message: “Address is not valid.” when adding a contact in MOC (OCS 2007 R2)

Problem

We’re finally cutting the rest of the people to OCS 2007 R2 Enterprise Voice for a client who we’ve done a Nortel BCM and OCS 2007 R2 integration this month and as we were training users on how to use MOC, one of the users ran into a problem when adding a contact through the Add a Contact… option:

image

…where they would receive the error:

Address is not valid.

The address you typed is not valid.

Valid addresses use the format username@domain (someone@example.com). Make sure there are no spaces in the address.

Click Back to retype the address.

clip_image002

Note: If you’re wondering why we were adding contacts this way, it’s because we enable all the users just before they head into training so they can still use their old phones before they come in which means the problem we need to deal with is that the users will not immediately have the GalContacts.db downloaded.

Going back to the problem, the user experiencing this problem was only getting the old contacts when they type in a user who was just enabled for OCS (people in his training session):

image

Solution

Since the problematic contacts appeared to be users who were newly enabled for OCS, I figure it’s most likely because the address book server hasn’t generated the new address book OR the user hasn’t downloaded the latest one (which would explain why he could see other users properly).

What I ended up doing was:

Went into the user profile directory at: %userprofile%\Local Settings\Application Data\Microsoft\Communicator\ to completely remove his MOC profile:

image

Then logged on to the server to force the address book server to regenerate the addresses with:

C:\"Program Files\Microsoft Office Communications Server 2007 R2\Server\Core"\abserver.exe -regenUR
C:\"Program Files\Microsoft Office Communications Server 2007 R2\Server\Core"\abserver.exe -syncnow

After completing the steps above, the user was now able to add the problematic contacts via the Add a Contact… option.

Monday, December 13, 2010

Mapping LUNs with NetApp FAS throws: “illegal LUN” error

Ran into an interesting error today with a NetApp FAS which I’m sure not a lot of people would but in case someone does, this post serves to show why.


Problem


You’ve created your aggregates, volumes and LUNs and now you would like to configure initiator groups for your ESXi servers so you can map iSCSi targets. However, as soon as you try to map the initiator group to the LUN, you receive the following error:


TruncatedInitiatorGroupName (mapping) : lun map: illegal LUN: “number,number,number”


TruncatedInitiatorGroupName (mapping) : lun map: illegal LUN: “number,number,number”


TruncatedInitiatorGroupName (mapping) : lun map: illegal LUN: “number,number,number”


image


If you have already noticed, the list of initiator groups looked a little strange at the bottom. So how did this all start? Let’s start from the beginning of how the group was created.


To create the initiator group, I navigating to LUNs –> Initiator Groups –> iSCSI –> Manage and then clicked on Add Initiator Group:


image


From there on, I created an Initiator Group named: ESXi01,02,03, selected the type to iSCSI, operating system to VMware and added the IQN to the initiators window:


image


The group successfully gets created:


image


I continued to the page for managing LUNs and proceed with mapping the initiator group to the LUN:


image


image


image


What’s strange about the following window is that it looks like our initiator group: ESXi01,02,03 appears to be truncated into 3 different groups:


image


image








If you continue to add a LUN number and try to map it, you will get the following error message:


TruncatedInitiatorGroupName (mapping) : lun map: illegal LUN: “number,number,number”


TruncatedInitiatorGroupName (mapping) : lun map: illegal LUN: “number,number,number”


TruncatedInitiatorGroupName (mapping) : lun map: illegal LUN: “number,number,number”


image


If you try to hit apply again, you’ll see the LUN number get repeated:


image


Solution

The solution here is actually quite simple: Do not use commas in your initiator group’s name. I’m not sure why the FilerView even allowed it so maybe the backend didn’t have anything to catch commas (it catches spaces). Also, if we were to logically think about it, the FilerView actually runs the console commands in the background which would explain why the comma characters threw off the procedures executing the commands.

Re-creating the initiator group with a name that does not have commas fixes the problem:


image


Definitely a mistake on my part but interesting glitch.