I have to find the machine names and the user names of those logged in to the machines.
I have Updated My answer please see my answer !!!!
NetworkBrowser nb = new NetworkBrowser();
IPHostEntry ip = Dns.GetHostEntry(Dns.GetHostName());
foreach (string pc in nb.getNetworkComputers())
{
cmbNetworkComputers.Items.Add(pc);
}
cmbNetworkComputers.SelectedIndex = 0;
The above code retrieves the machine names, how can I get the user names?