Adam1V Posted February 20, 2007 Share Posted February 20, 2007 Our server is set to DHCP and the ips recently renewed, so im not sure who has what ip anymore. I had 7 attempts from an internal ip address trying to access the server (failed attempts). I know the IPs havent changed over night, so im wondering how i might be able to match up whos using what ip address from the server? Is this possible? Adam Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/ Share on other sites More sharing options...
John Veteran Posted February 20, 2007 Veteran Share Posted February 20, 2007 Maybe with Active Directory. What are they trying to access on your server? A file share? A web page? Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588337554 Share on other sites More sharing options...
metalguy90 Posted February 20, 2007 Share Posted February 20, 2007 go to the Computer Management console, connect to the server, and you can see what sessions and files are open. in session, this will tell you the user and what IP they are coming from. Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588337567 Share on other sites More sharing options...
brand Posted February 21, 2007 Share Posted February 21, 2007 -Last logged on username reg key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ string: DefaultUserName -VBScript to query currently logged on user Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588339294 Share on other sites More sharing options...
brand Posted February 23, 2007 Share Posted February 23, 2007 quick solution: after making a hidden share name loggedonusers$ and giving domain users write access: logon script: pushd \\server\loggedonusers$\ echo %username% > %hostname%.txt popd test it out. this will give you a bunch of txt files with names of the hostnames containing the username. if you want to spend some time on it, you can make a database and make a vbscript search and replace the username versus hostname in a recordset. You can also look into querying AD as logs will show who authenticated from where. Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588344495 Share on other sites More sharing options...
MazX_Napalm Posted February 23, 2007 Share Posted February 23, 2007 Lan Spy. Freeware. It can poll at lot of info, but you can decide what info you want before polling the network. Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588345270 Share on other sites More sharing options...
Joel Posted February 24, 2007 Share Posted February 24, 2007 In the DHCP console, it tells you which computer has which address. Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588346239 Share on other sites More sharing options...
brand Posted February 25, 2007 Share Posted February 25, 2007 oh yea: 1) pslogged to query a pc. 2) use WMI (the Win32_ComputerSystem object, UserName property) 2b) use WMIc. make a batch file as follows: %%1 is the first argument. /node specifies the system. So the command syntax would be WHATEVER.BAT targethostname. This property only contains the user that is logged on at the system. It will not contain all users who are logged on to a term server; but only at the Console. wmic /node:%%1 computersystem get username Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588349382 Share on other sites More sharing options...
Adam1V Posted February 28, 2007 Author Share Posted February 28, 2007 wow, alot of different suggestions there, i actually found an easier way :) Opened up my AVG antivirus network installer, and scanned the domain to see what packages are installed, it lists the PC name and IP address. thanks for the info though guys Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588357935 Share on other sites More sharing options...
Joel Posted March 1, 2007 Share Posted March 1, 2007 This was easier than looking in your DHCP console for the leases? :blink: Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588360418 Share on other sites More sharing options...
bobbba Posted March 1, 2007 Share Posted March 1, 2007 Joel said: This was easier than looking in your DHCP console for the leases? :blink: Gotta agree :yes: Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588360431 Share on other sites More sharing options...
HDW-mobile Posted March 1, 2007 Share Posted March 1, 2007 hmm... Start --> run --> CMD --> NETSTAT and see the list... netstat can see the group list ect old trick still works... NETSTAT or NET see for any help (type behind NETstat /help) Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588360440 Share on other sites More sharing options...
mastermate Posted March 1, 2007 Share Posted March 1, 2007 how about: NBTSTAT -A ipaddress Link to comment https://www.neowin.net/forum/topic/540401-is-it-possible-to-match-ip-address-with-usernames/#findComment-588360506 Share on other sites More sharing options...
Recommended Posts