Net Session Command Does Not Interpret Redirected Input

Last reviewed: June 12, 1995
Article ID: Q131389
The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1
  • Microsoft Windows NT Workstation versions 3.5 and 3.51
  • Microsoft Windows NT Server versions 3.5 and 3.51

SYMPTOMS

If you create a batch file (for example, TEST) that contains a carriage return and linefeed character, and you direct this file to the NET SESSION command as follows,

   NET SESSION /DELETE <TEST

the command will request a response with the statement,

   Do you want to continue this operation(Y/N) [Y]

but then it will return the error:

   No valid response was provided.

0D 0A (carriage return and linefeed) are valid characters.

WORKAROUND

To work around this problem, add the /Y parameter to provide the default Yes response. For example:

   NET SESSIONS /DELETE /Y

The /Y parameter is not documented at this time.

STATUS

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


KBCategory: kbtool kbnetwork kbbug3.10 kbbug3.50 kbbug3.51
KBSubcategory: ntutil ntnetserv
Additional reference words: prodnt 3.10 3.50 3.51 cr


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: June 12, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.