The "icacls /T /C" command does not set the access permissions for the files and for the subfolders in Windows Server 2003, in Windows Vista, or in Windows Server 2008 if the inheritance flag is removed from the folder

Applies To
Windows Server 2008 Service Pack 2 Windows Server 2008 Windows Vista Service Pack 2 Windows Vista Microsoft Windows Server 2003 Service Pack 2

Symptoms

Consider the following scenario:

  • You have a computer that is running Windows Server 2003, Windows Vista, or Windows Server 2008.
  • You use the Icacls.exe command prompt utility to manage the access permissions of a folder on this computer.
  • You do not have permission to access the folder, the files in the folder, and the subfolders.
  • You remove the inheritance flag of the folder.
  • You use the /T switch to make sure that the changed permission is applied to the folder, to all the files in the folder, and to all the subfolders. Additionally, you use the /C switch to make sure that the operation continues if any file errors occur.

In this scenario, the access permission is applied to the folder. However, the access permission is not applied to all the files in the folder, and to all the subfolders. Additionally, the command returns error code 5. However, the command reports that the number of failed processes is 0.

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:

http:⁠//support.microsoft.com/contactus/?ws=support Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running one of the following operating systems:

  • Windows Server 2003 Service Pack 2 (SP2)
  • Windows Vista Service Pack 1 (SP1)
  • Windows Vista Service Pack 2 (SP2)
  • Windows Server 2008
  • Windows Server 2008 Service Pack 2 (SP2)

For more information about how to obtain a Windows Server 2003 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

889100 How to obtain the latest service pack for Windows Server 2003

For more information about how to obtain a Windows Vista service pack, click the following article number to view the article in the Microsoft Knowledge Base:

935791 How to obtain the latest Windows Vista service pack

For more information about how to obtain a Windows Server 2008 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

968849 How to obtain the latest service pack for Windows Server 2008

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.

Windows Server 2003 file information notes

  • In addition to the files that are listed in these tables, this hotfix also installs an associated security catalog file (KBnumber.cat) that is signed with a Microsoft digital signature.

For all supported x86-based versions of Windows Server 2003

File name File version File size Date Time Platform
Icacls.exe 5.2.3790.4707 41,472 11-May-2010 13:42 x86

For all supported x64-based versions of Windows Server 2003

File name File version File size Date Time Platform SP requirement Service branch
Icacls.exe 5.2.3790.4707 57,344 11-May-2010 14:23 x64 SP2 Not applicable
Wicacls.exe 5.2.3790.4707 41,472 11-May-2010 14:23 x86 SP2 WOW

For all supported IA-64-based versions of Windows Server 2003

File name File version File size Date Time Platform SP requirement Service branch
Icacls.exe 5.2.3790.4707 86,528 11-May-2010 14:23 IA-64 SP2 Not applicable
Wicacls.exe 5.2.3790.4707 41,472 11-May-2010 14:23 x86 SP2 WOW

                  

Windows Vista and Windows Server 2008 file information notes

Important Windows Vista hotfixes and Windows Server 2008 hotfixes are included in the same packages. However, only "Windows Vista" is listed on the Hotfix Request page. To request the hotfix package that applies to one or both operating systems, select the hotfix that is listed under "Windows Vista" on the page. Always refer to the "Applies To" section in articles to determine the actual operating system that each hotfix applies to.

  • The files that apply to a specific product, SR_Level (RTM, SPn), and service branch (LDR, GDR) can be identified by examining the file version numbers as shown in the following table.

    Version Product SR_Level Service branch
    6.0.600
    1.
    22xxx
    Windows Vista and Windows Server 2008 SP1 LDR
    6.0.600
    2.
    22xxx
    Windows Vista and Windows Server 2008 SP2 LDR
  • Service Pack 1 is integrated into the release version of Windows Server 2008. Therefore, RTM milestone files apply only to Windows Vista. RTM milestone files have a 6.0.0000.xxxxx version number.

  • The MANIFEST files (.manifest) and the MUM files (.mum) that are installed for each environment are listed separately in the "Additional file information for Windows Server 2008 and for Windows Vista" section. MUM files and MANIFEST files, and the associated security catalog (.cat) files, are extremely important to maintain the state of the updated components. The security catalog files, for which the attributes are not listed, are signed with a Microsoft digital signature.

For all supported x86-based versions of Windows Server 2008 and of Windows Vista

File name File version File size Date Time Platform
Icacls.exe 6.0.6001.22689 27,136 11-May-2010 14:11 x86
Icacls.exe 6.0.6002.22402 27,136 11-May-2010 14:35 x86

For all supported x64-based versions of Windows Server 2008 and of Windows Vista

File name File version File size Date Time Platform
Icacls.exe 6.0.6001.22689 34,816 11-May-2010 14:30 x64
Icacls.exe 6.0.6002.22402 34,816 11-May-2010 14:47 x64
Icacls.exe 6.0.6001.22689 27,136 11-May-2010 14:11 x86
Icacls.exe 6.0.6002.22402 27,136 11-May-2010 14:35 x86

For all supported IA-64-based versions of Windows Server 2008

File name File version File size Date Time Platform
Icacls.exe 6.0.6001.22689 75,776 11-May-2010 14:12 IA-64
Icacls.exe 6.0.6002.22402 75,776 11-May-2010 14:35 IA-64
Icacls.exe 6.0.6001.22689 27,136 11-May-2010 14:11 x86
Icacls.exe 6.0.6002.22402 27,136 11-May-2010 14:35 x86

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about the Iicacls command, visit the following Microsoft website:

General information about the "icacls" command For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional file information

Additional file information for Windows Vista and for Windows Server 2008

Additional files for all supported x86-based versions of Windows Vista and of Windows Server 2008

File name Update.mum
File version Not applicable
File size 2,590
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name X86_5d9dd8441f4706d5934b10976d3b9d1b_31bf3856ad364e35_6.0.6001.22689_none_879948fe44e3b7f4.manifest
File version Not applicable
File size 694
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name X86_8a892879cc59510003a8b2205f337e49_31bf3856ad364e35_6.0.6002.22402_none_ed6981917a65a3dd.manifest
File version Not applicable
File size 694
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name X86_microsoft-windows-icacls_31bf3856ad364e35_6.0.6001.22689_none_32f0c893bf50867f.manifest
File version Not applicable
File size 4,184
Date (UTC) 11-May-2010
Time (UTC) 17:30
Platform Not applicable
File name X86_microsoft-windows-icacls_31bf3856ad364e35_6.0.6002.22402_none_3526b9bbbc3c47e1.manifest
File version Not applicable
File size 4,184
Date (UTC) 11-May-2010
Time (UTC) 18:42
Platform Not applicable

Additional files for all supported x64-based versions of Windows Vista and of Windows Server 2008

File name Amd64_57373f1fd9426c8b8e787e553f1a95f1_31bf3856ad364e35_6.0.6002.22402_none_421a891408e85121.manifest
File version Not applicable
File size 1,036
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name Amd64_fa3be822f53e1605117de07e36a17de9_31bf3856ad364e35_6.0.6001.22689_none_4c29f57dcfd01de1.manifest
File version Not applicable
File size 1,036
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name Amd64_microsoft-windows-icacls_31bf3856ad364e35_6.0.6001.22689_none_8f0f641777adf7b5.manifest
File version Not applicable
File size 4,196
Date (UTC) 11-May-2010
Time (UTC) 18:00
Platform Not applicable
File name Amd64_microsoft-windows-icacls_31bf3856ad364e35_6.0.6002.22402_none_9145553f7499b917.manifest
File version Not applicable
File size 4,196
Date (UTC) 11-May-2010
Time (UTC) 18:50
Platform Not applicable
File name Update.mum
File version Not applicable
File size 2,608
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name X86_microsoft-windows-icacls_31bf3856ad364e35_6.0.6001.22689_none_32f0c893bf50867f.manifest
File version Not applicable
File size 4,184
Date (UTC) 11-May-2010
Time (UTC) 17:30
Platform Not applicable
File name X86_microsoft-windows-icacls_31bf3856ad364e35_6.0.6002.22402_none_3526b9bbbc3c47e1.manifest
File version Not applicable
File size 4,184
Date (UTC) 11-May-2010
Time (UTC) 18:42
Platform Not applicable

Additional files for all supported IA-64-based versions of Windows Server 2008

File name Ia64_76cb7ed17eaa06f1967ea13e92b8cfb1_31bf3856ad364e35_6.0.6002.22402_none_f48a370498c5f54f.manifest
File version Not applicable
File size 1,034
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name Ia64_fb7e9e8a43c7ee48bbffdb5b6f210ae1_31bf3856ad364e35_6.0.6001.22689_none_d8510a4123608330.manifest
File version Not applicable
File size 1,034
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name Ia64_microsoft-windows-icacls_31bf3856ad364e35_6.0.6001.22689_none_32f26c89bf4e8f7b.manifest
File version Not applicable
File size 4,190
Date (UTC) 11-May-2010
Time (UTC) 17:16
Platform Not applicable
File name Ia64_microsoft-windows-icacls_31bf3856ad364e35_6.0.6002.22402_none_35285db1bc3a50dd.manifest
File version Not applicable
File size 4,190
Date (UTC) 11-May-2010
Time (UTC) 18:18
Platform Not applicable
File name Update.mum
File version Not applicable
File size 1,932
Date (UTC) 12-May-2010
Time (UTC) 00:55
Platform Not applicable
File name X86_microsoft-windows-icacls_31bf3856ad364e35_6.0.6001.22689_none_32f0c893bf50867f.manifest
File version Not applicable
File size 4,184
Date (UTC) 11-May-2010
Time (UTC) 17:30
Platform Not applicable
File name X86_microsoft-windows-icacls_31bf3856ad364e35_6.0.6002.22402_none_3526b9bbbc3c47e1.manifest
File version Not applicable
File size 4,184
Date (UTC) 11-May-2010
Time (UTC) 18:42
Platform Not applicable