How Do I Get Permission to Delete the Windows Folder? - Microsoft Q&A (2024)

Hello,

Thank you for posting in Q&A forum.

We suggest that you try the following steps to overwrite TrustedInstaller and delete this Windows folder:

Open the Command Prompt (CMD) to run as an administrator.

Transfer the ownership of the folder to yourself using the command takeown/f<path_to_windows_folder>/r/d y.

Use the command icacls<path_to_windows_folder>/grant administrators: F/t to give the administrator group full control permissions.

Then try deleting the folder. If it still cannot be deleted, use the command rd/s/q<path_to_windows_folder>to forcibly delete the folder and its contents.

These commands should allow you to overwrite TrustedInstaller and successfully delete the Windows folder.

Hope this answer can help you well.

Best regards,

Jill Zhou

How Do I Get Permission to Delete the Windows Folder? - Microsoft Q&A (2024)
Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 5306

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.