How to Immediately Disable and Log off a Domain User

Last reviewed: August 2, 1996
Article ID: Q152665
The information in this article applies to:
  • Microsoft Windows NT Server versions 3.5 and 3.51

SUMMARY

Windows NT provides the ability to prevent a user from logging on to the domain by disabling the user account in User Manager; however, this does not take effect until the user restarts the computer. In some cases, it may be necessary to immediately disable a user account in a Windows NT domain.

MORE INFORMATION:

In order to immediately disable a domain user account, perform the following steps on the primary domain controller (PDC):

Note: You must have domain administrative privileges in order to perform the following steps:

  1. In User Manager for Domains choose "Account Disabled" in Users Properties.

  2. Still in the Users Properties, choose "Hours" and then Disallow all

        hours for this user.
    

  3. Open Server Manager and disable the user sessions in server manager or

        type "net session \\computername /delete" at the command prompt.
    


KBCategory: kbnetwork
KBSubcategory: ntdomain
Additional reference words: 3.50 3.51 prodnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 2, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.