Get remote username, OS version!
anyone pls help:
is it possible using C# coding to get the remote computer username and OS version?? if i have the IP address of that computer. if possible, then can show me the coding, coz i still a newbie in learning C#. thx..

Roei BarRank #1,271 · 1.4K reputationPosted Aug 23, 2009, 3:39 AM EDT
[DllImport("kernel32.dll", SetLastError=true)] static extern int OpenProcess ( int dwDesiredAccess, int bInheritHandle, int dwProcessId) [DllImport("kernel32.dll", SetLastError=true)] static extern int GetExitCodeProcess ( int hProcess, ref int lpExitCode) private void ShellWait(string JobToDo) { long hProcess ,Long RetVal hProcess = OpenProcess(&H400, False, Shell(JobToDo, vbHide)) while (RetVal = &H103) { GetExitCodeProcess(hProcess, RetVal); Thread.Sleep(100); } } private void Command1_Click() { string Ln,string IpAddress int ff IpAddress = "192.168.1.100" ShellWait "command.com /c nbtstat -A " & IpAddress & " > TmpUsr.tmp" List1.Clear ff = FreeFile Open "TmpUsr.tmp" For Input As #ff Do Until EOF(ff) Line Input #ff, Ln if(Trim$(Ln) <> "") List1.AddItem (Ln); End If Loop Close #ff Kill "TmpUsr.tmp" }and for Remote System OS:
SystemInfo si; SystemInfo.GetSystemInfo(out si); txtboxApplication.Text = si.AppName; txtboxVersion.Text = si.AppVersion; txtBoxComputerName.Text = si.MachineName; txtBoxMemory.Text = Convert.ToString((si.TotalRam / 1073741824) + " GigaBytes"); txtBoxProcessor.Text = si.ProcessorName; txtBoxOperatingSystem.Text = si.OperatingSystem; txtBoxOSVersion.Text = si.OperatingSystemVersion; txtBoxManufacturer.Text = si.Manufacturer; txtBoxModel.Text = si.Model;Loon Loon3 reputationPosted Aug 23, 2009, 5:49 AM EDT
meenakshi sundari7 reputationPosted Apr 13, 2010, 4:46 AM EDT
I want to get the remote computer username ,password and OS version? if i have the IP address of that computer.in vb.net
Can you tell me the process of the same code in vb.net