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.
Asked
Active
Viewed 2,675 times
1 Answers
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