Quantcast
Channel: Lync 2010 and OCS - Lync Clients and Devices forum
Viewing all articles
Browse latest Browse all 3260

executing the Powershell script through C# by using WSManConnectionInfo

$
0
0

Hi friends

I am executing the Powershell script through C# by using WSManConnectionInfo, I am making remote connection from my local machine to Lync Server and executing the below commands.

using (Pipeline pipe = remoteRunspace.CreatePipeline())
{
Command enableCsUser = new Command(“Set-CsUser”);
enableCsUser.Parameters.Add(“-Identity”, “testuser”);
enableCsUser.Parameters.Add(“-EnterpriseVoiceEnabled”, true);
enableCsUser.Parameters.Add(“-LineURI”, “TEL:+19677777777”);
pipe.Commands.Add(enableCsUser);
pipe.Invoke();
}

But i am getting the below errors message at pipe.Invoke()

Error msg: “Active Directory error “-2147016672” occurred while searching for domain controllers in domain “”: “An operations error occurred.”

Any body have idea about this issue and hellp me..

Thanking you.


Viewing all articles
Browse latest Browse all 3260

Trending Articles



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