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
Solved

How do you automatically kick users off a

Posted on 1997-09-09
7
696 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
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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
Resolve DNS query failed errors for Exchange
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 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