Announcement

Collapse
No announcement yet.

See logged user & kick them

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • See logged user & kick them

    hello,
    someone know how i can show all user wich are logged on a domain and kick them if nessery?
    thx

    --------

    it´s done.
    mark the computers and show logged on users


    [This message has been edited by jkalinowski (edited 12-12-2001).]

  • #2
    Re: See logged user & kick them

    NT users aren't really logged into anything but rather when they login to the network, a domain controller validates their login request and they are given a token.

    This token is used whenever they try to access a resource on the network, such as shares, files, printers, etc. But, they don't really take up any connections anywhere unless they are accessing a shared resource.

    Comment


    • #3
      Re: See logged user & kick them

      try this batch you may need to retune it !
      cd\
      del /q names.txt
      del /q stat.txt
      del /q finalresults.txt
      rem Searching for logged on user ...
      rem Create list of machines active on the network.
      net view > stat.txt

      rem Run NBTSTAT on each machine
      for /f "skip=2 delims=\ " %%i in (c:\stat.txt) do nbtstat -a %%i >> names.txt

      rem Strip out worthless results.
      findstr " %%i <03>" names.txt >finalresults.txt

      rem Open the resulting file in Notepad.
      notepad finalresults.txt

      del /q names.txt
      del /q stat.txt
      del /q finalresults.txt


      regards

      Comment

      Working...
      X