-5

100+ systems connected through the network. I want to get the current username of a particular system from windows server. For example, I want to know which user currently logged in a particular system(192.168.1.2).How to achieve this?

Sarath Kumar
  • 1,136
  • 1
  • 18
  • 41

1 Answers1

2

Run the following DOS Command using C# (System.Diagnostics.Process.Start)

  nbtstat –a ipaddress

This will give the computer name

  net view /domain:ad > somefile.txt

Where ad is the name of the domain you want to search and somefile.txt is the name of the file to contain the output.

In the somefile.txt you can find the username besides ip address

I hope using this info you can get the solution

NaveenKumar
  • 600
  • 1
  • 5
  • 18