Windows Client TechCenter > Windows 7 Forums > Windows 7 Security > You need to provide permission to delte this file. (inetpub and its subdirectories)
Ask a questionAsk a question
 

AnswerYou need to provide permission to delte this file. (inetpub and its subdirectories)

  • Thursday, November 05, 2009 4:46 PMgreynol1 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You need to provide permission to delte this file.  (inetpub and its subdirectories)

                 a)

Answers

  • Friday, November 06, 2009 5:21 AMShaon ShanMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

     

    What file are you trying to delete? Sometimes we cannot delete a system file as it is a protected file.

     

    You can try following steps to take ownership of the file and try to delete it again.

     

    1. Start > Run > type "cmd" (With no quotes)

     

    2. Type: takeown /F <File Location> /R /D y

     

    Note: <File location> means the exact location such as C:\Windows\example.exe.

     

    3. Click Enter on the command to run it.

     

    4. After it finished, type: icacls <File Location> /grant Administrators:F /t

     

    5. Click Enter again.

     

    Now test if we can delete the file.

All Replies

  • Friday, November 06, 2009 5:21 AMShaon ShanMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

     

    What file are you trying to delete? Sometimes we cannot delete a system file as it is a protected file.

     

    You can try following steps to take ownership of the file and try to delete it again.

     

    1. Start > Run > type "cmd" (With no quotes)

     

    2. Type: takeown /F <File Location> /R /D y

     

    Note: <File location> means the exact location such as C:\Windows\example.exe.

     

    3. Click Enter on the command to run it.

     

    4. After it finished, type: icacls <File Location> /grant Administrators:F /t

     

    5. Click Enter again.

     

    Now test if we can delete the file.