Link to home
Start Free TrialLog in
Avatar of PJansen
PJansen

asked on

Detecting connected users

Situation:
Two Windows 95 computers connected through an ethernet LAN. Computer A shares his harddisk and Computer B is connected to it. How can i detect that a user is connected to my computer.
When shutting down, windows prompts me that a user is connected. But I want to detect is myself. I don't want to run Interactive programs like Network monitor. Is there a registry setting I can check or a command line utiltiy I can run.

When I know how to detect a user connected to my computer, I want to disconnect the user. Also this from command line or registry settings. As a result I can reboot my computer with no questions asked.
Thanks,
Peter
Avatar of shawnd
shawnd

Ya just run Net Watcher...comes with 95...
add/remove programs, windows setup, accessories, net watcher...
later Shawn

Avatar of PJansen

ASKER

Correct me if I am wrong, but isn't that a interactive GUI program. As I wrote in my question, I would like to detect it from command line or from the registry. The solutions must me useable in an unattended shut down procedure.

Thanks,

Peter
Avatar of PJansen

ASKER

Edited text of question
oh, ok...
What about the "net" command....Like "net view", That may be a little more helpful..."net view \\computername" as well
just do a "net/?" at the dos prompt for all available options..
later
Shawn

Avatar of PJansen

ASKER

I can't find an option to get the info with the net command. I did find an other option: nbtstat -s
It gives me the connections out and into my computer. So that's step 1 (unless somebody has a better idea), now I want to disconnect the user some way.
Ideas?
Peter
try "net stop /?"
Avatar of PJansen

ASKER

Doesn't work. Cant be run in a dos box.
Other options?

Peter
ASKER CERTIFIED SOLUTION
Avatar of clay111296
clay111296
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PJansen

ASKER

Link is not ok. Do you know where to find it now?
Peter
You can see if someone has been on your computer, just by useing the ARP command line utility. Try:

arp -a

This way you get information about the IP and MAC addresses with recent connections, the last 2-10 minutes.

use a program called netwatcher pro.

Netwatcher pro can be setup to play a sound just when somebody connects to your computer and at the bottom right hand of your screen there will be a bulb and if that is
red it means there is someone connected to your computer.

There are other facilities which enables you to disconnect them also.