NET Command Does Not Return Errorlevel

Last reviewed: September 9, 1996
Article ID: Q125857
The information in this article applies to:
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Server 3.5

SYMPTOMS

The NET.EXE command fails to return an errorlevel. For example, when you run a batch file containing the following commands

   net group group1 user1 /add
   if errorlevel 1 echo add failed

"add failed" does not get echoed, even when user1 is not successfully added to group1.

CAUSE

There is a problem in the Windows NT 3.5 version of the NET.EXE command. This problem does not exist in Windows NT 3.1.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 3.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


KBCategory: kbnetwork kbbug3.50
KBSubcategory: ntnetserv ntutil
Additional reference words: 3.50 prodnt error level


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: September 9, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.