CACLS Output Cannot Be Redirected

Last reviewed: December 18, 1997
Article ID: Q150911
The information in this article applies to:
  • Microsoft Windows NT Server version 4.0 Service Pack 2
  • Microsoft Windows NT Workstation 4.0 Service Pack 2
  • Microsoft Windows NT Server version 3.51 Service Pack 5
  • Microsoft Windows NT Workstation 3.51 Service Pack 5

SYMPTOMS

When you try to redirect the output of CACLS to a file, the resulting information is incomplete. For example, the display output of "cacls c:\" is:

   c:\ BUILTIN\Administrators:(OI)(CI)F
   Everyone:(OI)(CI)C
   CREATOR OWNER:(OI)(CI)F
   NT AUTHORITY\SYSTEM:(OI)(CI)F

If you redirect the ouput with "cacls c:\ >file.out," File.out only contains the following:

   \:(OI)(CI)F
   :(OI)(CI)C
   :(OI)(CI)F
   \:(OI)(CI)F

CAUSE

With Service Pack 2 for Windows NT 4.0 and Service Pack 5 for Windows NT 3.51, Cacls.exe was modified to handle extended characters. This modification required output routines that cannot be redirected.

RESOLUTION

Use Cacls.exe that ships with the Windows NT 4.0 CD-ROM or use XCACLS from the Windows NT Resource Kit.

NOTE: Xcacls.exe is located in the folder where you installed the Windows NT Resource Kit; the default location is C:\Ntreskit. On the Resource Kit CD, it is located in the following folder:

   D:\<platform>\Netadmin

where D: is your CDROM drive and <platform> is your computer platform, such as i386 or Alpha.

MORE INFORMATION

For more information, please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q142661
   TITLE     : Cacls.exe May Report Errors when Handling Extended
               Characters


Additional reference words: 4.00 prodnt
Keywords : NTSrvWkst ntutil kbtool
Version : 3.51 4.0
Platform : winnt


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: December 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.