Connecting remotely to an Exchange Server?
<p>I am doing a project with Active Directory and I am having trouble:</p>

<p>In Visual Studio I can create a new account in Active Directory successfully. After that, I want to enable email on a Exchange Server. That works when both the program and that Exchange server are on the same computer.</p>

<p>But when I install my program on a User Computer and the Exchange Server is on another computer, I can not connect to the Exchange Server.</p>

<p>I found on Google a possible solution that I don't fully understand:</p>

<pre><code>PSCredential credential = new PSCredential("Administrator@domain.local", securePwd);
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri
      ("http://exchangetestbox:5985/wsman"), 
      "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential);
connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Kerberos;

Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo);
</code></pre>

<p>How do I get the URI variable? I also do not understand: liveIdconnectionUri</p>
