Management object not found for identity error while creating id in Lync even after the AD object exists
hi every one,
currently im writing c# code creating login id in active directory, mailbox in exchange server 2010 , id in lync 2010. in code 3 things should created 1 one @ time.
but im getting following error after creating login id in ad , mailbox in exchange.
management object not found identity 'display name'
as per understanding login id reflect in ad after 2 hours didnt give problem while creating mailbox same user. have put condition check whether id exists in ad before running code lync.
below ps script im calling c# code,
enable-csuser -identity '" + display name+ "' -registrarpool " + lyncpool + " -sipaddress 'sip:" + primarymailid + "'
here im passing display name identity , tried passing domain\loginid identity also. still getting same error. tried executing same script lync 2010 shell there im getting same error.
but if run code after time (when login id visible in ad) working perfectly.
i have no idea cause, pl me resolve asap.
also im not sure whether right forum raise question pl needful if not.
thanks in advance,
regards,
elango
chennai.
mark answer or vote helpful if reply does.
hi,
as far understanding, script works, when wait time. think out there time delay when create ad account.
maybe first use get-csuser, , check out whether user account exists, pass account's displayname enable-csuser command.
please refer below link more helpful information:
enabling user microsoft lync server 2010 and enterprise voice: “barebones” lync server walkthrough
http://blogs.technet.com/b/csps/archive/2010/06/28/wtlenableuservoice.aspx
regards,
yan li
cataleya li
technet community support
Windows Server > Windows PowerShell

Comments
Post a Comment