Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Management object not found for identity error while creating id in Lync even after the AD object exists

$
0
0

Hi every one,

Currently Im writing C# code for creating Login Id in Active Directory, Mailbox in Exchange Server 2010 and ID in Lync 2010. In my code all the three things should be created one by one at a time.

But Im getting the following error even after creating Login ID in AD and mailbox in Exchange.

 Management object not found for identity 'Display Name'

As per my understanding the Login ID will reflect in AD after two hours but it didnt give any problem while creating mailbox for the same user. Also I have put a condition to check whether the id exists in AD before running the code for Lync.

Below is the PS script which Im calling from the C# code,

Enable-CsUser -Identity '" + Display Name+ "' -RegistrarPool " + LyncPool + " -SipAddress 'sip:" + PrimaryMailId + "'

Here Im passing the Display name as Identity and I tried passing domain\loginid for Identity also. Still getting the same error. I tried executing the same script from Lync 2010 shell there also Im getting the same error.

But If I run this code after some time (when the Login ID is visible in AD) its working perfectly.

I have no idea what is the cause, Pl help me to resolve this asap.

Also Im not sure whether this is the right forum to raise this question Pl do the needful If its not.

Thanks in advance,


Regards,
Elango
Chennai.
Mark As Answer or Vote As Helpful if My Reply Does.


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>