1

Is there a way to enable users on the Lync server via C#. I refer to the same functionality that runs when you go to Lync Server Control Panel, and creating a new Lync Server User.

casperOne
  • 73,706
  • 19
  • 184
  • 253
esskar
  • 10,638
  • 3
  • 36
  • 57

1 Answers1

4

You could call the Enable-CSUser powershell command from a C# app - see the articles here and here

Paul Nearney
  • 6,965
  • 2
  • 30
  • 37
  • but, then the code has to run on the same machine as lync, this is not always possible. is there another way you know of? – esskar May 20 '11 at 08:14
  • The article I linked to describes how to run powershell commands remotely, meaning you should be able to run from any machine in the domain, provided you are running as a user with the correct privileges. Does this not work for you? – Paul Nearney May 20 '11 at 17:21
  • the lync shell calls this script on startup: – esskar May 27 '11 at 11:12