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.