Solved

How do you automatically kick users off a

Posted on 1997-09-09
7
699 Views
Last Modified: 2013-12-23
Are there any programes that make it possible to kick users from a Win95 network.  I have the situation whereby, overnight I wish to restart the computer, however there may well be users connected, sharing resources.  So I need a way of removing users, similar to netwatcher (disconnecting users) option, however I need to be able to execute it from within a batch file, or VB program.  Will it matter which protocol I am using, TCP/IP - Netbeui - Netware??
0
Comment
Question by:paulk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 25

Expert Comment

by:dew_associates
ID: 1548954
Paulk: It does matter which type of network you have, but more info on how the network is setup would be helpful. Give us some idea of how many are hooked up to this network, the type of network, whether or not there is a server and what type of network software is being used eg: Windows NT, Novell etc.


0
 

Expert Comment

by:compinfo
ID: 1548955
PaulK,
I would recommend downloading and trying PCAnywhere32.  You can take control of your desktop at work by modem.
0
 

Author Comment

by:paulk
ID: 1548956
err, I think you might have the wrong end of the stick here, thanks for tying anyhow :(
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 2

Expert Comment

by:mearley081497
ID: 1548957
Under Win95 and NT and last and least Win 3.x you can issue the NET command from a batch file or from within VB.

To see the information I have given you below just type Net /? or NET (specific command here) /?  for specific ussage instructions.

These commands will give you full control of your network connections.  In particular, NET STOP will get rid of all your connections, but as you can see below, there are other ways.

-Matthew

For more information about a specific Microsoft NET
command, type the command name followed by /?
(for example, NET VIEW /?).

NET CONFIG   Displays your current workgroup settings.
NET DIAG     Runs the Microsoft Network Diagnostics program to
             display diagnostic information about your network.
NET HELP     Provides information about commands and
             error messages.
NET INIT     Loads protocol and network-adapter drivers without
             binding them to Protocol Manager.  
NET LOGOFF   Breaks the connection between your computer and
             the shared resources to which it is connected.
NET LOGON    Identifies you as a member of a workgroup.
NET PASSWORD Changes your logon password.
NET PRINT    Displays information about print queues
             and controls print jobs.
NET START    Starts services.
NET STOP     Stops services.
NET TIME     Displays the time on or synchronizes your computer's
             clock with the clock on a Microsoft Windows for
             Workgroups, Windows NT, Windows 95, or NetWare time server.
NET USE      Connects to or disconnects from a shared
             resource or displays information about
             connections.
NET VER      Displays the type and version number of the
             workgroup redirector you are using.
NET VIEW     Displays a list of computers that share
             resources or a list of shared resources
             on a specific computer.
The command was completed successfully.

0
 

Author Comment

by:paulk
ID: 1548958
It says :

Error 3545: You cannot start or stop the network from within an MS-DOS window.


0
 
LVL 4

Accepted Solution

by:
Tomun earned 100 total points
ID: 1548959
try this in VB4 32bit or VB5

Dim lReturn As Long
lReturn = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT _
                                  Or EWX_SHUTDOWN, 0)

This should reboot and force disconnection of all users,
closes active DOS boxes etc as well.

0
 

Author Comment

by:paulk
ID: 1548960
Brilliant! Truely Inspiring, why can't all people be as cleaver as you are Mr. Tomun.  I would like to thank you for the advice, and to say it worked wonders.  You should program for Microsoft, if they had more coders like you, then might actually be able to design a decent operating system :o)


0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question