Error when running OcsUmUtil.exe on Lync server

We have a very simple system, consisting of one Lync server, one exchange server.

I have followed all steps to integrate Exhange 2010 UM with Lync 2010.

http://blog.schertz.name/2010/11/lync-and-exchange-um-integration/

All goes well until I try to run the OcsUmUtil tool on the Lync server. When I try to add a contact, I get the following error:

 

"There was an error while trying to create the new contact object in Active Directory. Make shure that the account you are using has persmission to write to active directory, and that the name you have shosen for this contact is unique. Object reference not set to an instance of an object."

The account I use certainly has all the required permissions, and the name is unique.

So, how do I continue????

 

December 6th, 2010 7:41pm

Hi, would you try to run the following cmdlet in Lync Server Management Shell to grant the proper ACLs on the contact objects.

Grant-CsOUPermission –OU <OU or Users container DN>  -ObjectType contact

Free Windows Admin Tool Kit Click here and download it now
December 7th, 2010 7:23am

Hi!

 

I tried that, but I'm not shure what the input to the command should be... should the OU be the same as the one I'm pointing to when I'm adding a contact with the OcsUmUtil? (for example dc=acmo,dc=com)

 

Regards,

Lennart

December 7th, 2010 8:08am

Yes, if no luck, would you please run the New-CsExUmContact cmdlet to create any contact objects required for your deployment. For example, run the following to create an AA and an SA contact object:
New-CsExUmContact -SipAddress "sip:HostedAA@lcscorp.lcesa.pri.local" -RegistrarPool "lspool2.lcscorp.lcesa.pri.local" -OU "HostedExUM Integration" -DisplayNumber "+14257273538" -AutoAttendant $True
New-CsExUmContact -SipAddress "sip:HostedSA@lcscorp.lcesa.pri.local" -RegistrarPool "lspool2.lcscorp.lcesa.pri.local" -OU "HostedExUM Integration" -DisplayNumber "+14257273539"
Free Windows Admin Tool Kit Click here and download it now
December 7th, 2010 8:29am

Ok...

When I try this:

New-CsExUmContact -SipAddress "sip:Acme_AA@acme.com" -RegistrarPool "gimlet
.acme.com" -OU "dc=acme,dc=com" -DisplayNumber "+46846501031" -AutoAttenda
nt $True

I get this error:

New-CsExUmContact : Management object not found for identity "dc=competella,dc=com".

December 7th, 2010 8:37am

Hi, -OU "dc=acme,dc=com" is a domain name, not OU distinguish name, the OU DN should be like as: "ou=redmond,dc=contoso,dc=com".
Free Windows Admin Tool Kit Click here and download it now
December 7th, 2010 9:17am

Thanks!

I created a new OU and used that as a store. Hmmm... the way I tried to do it with just the domain actually worked for OCS 2007...

December 7th, 2010 9:28am

Lennard. Hi!

I get the same situation,

"There was an error while trying to create the new contact object in Active Directory. Make shure that the account you are using has persmission to write to active directory, and that the name you have shosen for this contact is unique. Object reference not set to an instance of an object."

but I did not quite undestood what you have done to solve it, if you done...

Regards

Luiz

Free Windows Admin Tool Kit Click here and download it now
December 29th, 2010 6:39pm

I had the same issue let me think back to what i did to resolve this....

seems like stale records

 

check your AD for random users in the Users and computers - dont delte the special mailboxes

January 7th, 2011 3:51pm

Luiz: I created a new organizational unit (OU) which I named "Exchange UM Contacts" in my root (DC=acme,DC=com).

Then I used that as an OU for the New-CsExUmContact command: -OU "ou=Exchange UM Contacts,dc=acme,dc=com"

Free Windows Admin Tool Kit Click here and download it now
January 14th, 2011 8:42am

We found a similar issue. We accidently added the contact object to a director. A simple mistake.
February 18th, 2014 5:07pm

I was scratching my head and performing all different types of security changes in AD.  I ended up resolving my issue by running the command via Powershell:

OcsUmUtil.exe /domain:my_domain_name /OU:"desired_OU"

Free Windows Admin Tool Kit Click here and download it now
March 5th, 2015 10:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics