How to Connect to computer on the workgroup?
<p>I am trying to connect to a computer over the workgroup. My code is below:    </p>

<pre><code>ConnectionOptions options = new ConnectionOptions();
options.Impersonation = ImpersonationLevel.Impersonate;
options.Username = "testusername";
options.Password = "testpwd";
ManagementScope scope = new ManagementScope(@"\\19x.16x.x.xx\C$\TestFolder", options);
scope.Connect();
if (scope.IsConnected == true)
{ 
    MessageBox.Show("Connection Succeeded", "Alert"); 
} 
else 
{
    MessageBox.Show("Connection Failed", "Alert");
}
</code></pre>

<p>When I run this, I get the exception : "Invalid parameter"</p>

<p>How to sort this out?</p>

<p>edit:</p>

<p>The error is in this line below:</p>

<pre><code>ManagementScope scope = new ManagementScope(@"\\19x.16x.x.xx\C$\TestFolder", options);
</code></pre>

<p>How do we specify the drive? I think the $ is causing the problem</p>
