You are attempting to take existing OCS (Office Communications Server) users and create Lync Enabled objects using a workflow from within FIM.
You discover that the Lync objects are not being created.
The following workaround is taken from a customer site. The issue at hand was that the FIM Service essentially had to be configured as a Lync Administrator to create the Lync Enabled objects.
Looking at the issue and breaking out the piece parts of the customer’s solution.
There were two critical things that we quickly noted:
As long as we provided the credentials the PowerShell script fired just fine. The issue appeared to be FIM in that credentials were not being manually entered upon each run.
Working with the LYNC team a method was determined of invoking the necessary PowerShell session so that the account credentials for the FIM Service would not have to be entered each time.
Here is the script to start a session in the context of the user who invokes the session and these credentials will be used for the remainder of the session.
$so = New-PSSessionOption -SkipRevocationCheck $CSSession = New-PSSession -ConnectionUri https://randomserver.contoso.com/ocspowershell -Authentication NegotiateWithImplicitCredential -SessionOption $so