Download Windows Speedup Tool to fix errors and make PC run faster
If you had to change the permissions of files and folders in Windows 11/10 for some reason, and if you want to reset the permissions to default, this post will help you. One of the users reported that he had to set the ownership and permissions to everyone and full control for a specific task, and now that it’s done, getting back to the default permission is difficult. Since the option is not built into the system, we will have to use the secedit
and icacls
commands to reconfigure. You can also use the subinacl Tool.
Security is essential, and it is not just that other users can access the files, but programs you install on the computer also get the same access. The good news is that fixing the permissions to default is easy, and all you need is to run a command-line program to fix it. Before going ahead, create a system restore point, so in case things go wrong, you can restore.
- Run icacls command
- Run Secedit command
- Use Subinacl Tool
You will need admin permission to execute the commands.
Reset all File & Folder Permissions to default
1] Run icacls command
Another method to resolve this using the icacls command. However, you will need first to take ownership of the folder and then execute the command. Windows uses the Access Control List to configure permissions for all files and folders. Icacls is a command-line utility that can display and modify the permissions on specified files and apply them.
It comes with a reset option that replaces ACLs with default inherited ACLs for all matching files. We will use the following options to reset
- t—Operates on all specified files in the current directory and its subdirectories.
- q—Suppresses success messages.
- c—Continues the operation despite any file errors. Error messages will still be displayed.
Next, run the following on an elevated command prompt—
icacls * /t /q /c /reset
Once done, you must save the permission into a file that you can use again later or apply to other computers.
2] Run Secedit command
It allows you to configure and analyze system security by comparing the current config with a template.
Configures and analyzes system security by comparing your current security configuration against specified security templates.
Type CMD in the Run (Win +R) prompt and then press Shift + Enter to open it with admin permission
Execute the following command-
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
You may get some warning, but you can safely ignore it.
3] Use Subinacl Tool
Download the Subinacl tool developed by Microsoft. If you have Windows Resource Kit installed on your system, you will find its SubInAcl.exe file in the C:\Program Files\Windows Resource Kits\Tools folder. It is not available as a separate download now but you can download it via Microsoft archived page.
Install the package in the C:\Windows\System32 folder path.
Next, open Notepad and type in the following commands, and save it as a .cmd file. You could name it Reset UserPermissions.cmd:
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f subinacl /subdirectories %SystemDrive% /grant=administrators=f subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f subinacl /subdirectories %SystemDrive% /grant=system=f
Run this file to reset the user permissions.
Changing permission on Windows is tricky because there is no way to switch back to default permission once you change it. It should have been there right from the start and let Windows users fix it themselves.
I hope these commands were useful and helped you reset file & folder permissions to default in Windows.
Now read: Restore TrustedInstaller as Owner and its Permissions to default in Windows.
Ashish holds a Bachelor’s in Computer Engineering and is a veteran Windows. He has been a Microsoft MVP (2008-2010) and excels in writing tutorials to improve the day-to-day experience with your devices.
Reader Interactions
If you want to reset files and folder permissions to default in Windows, then you are at the right place. This post will provide three methods to help reset files and folder permissions to default in Windows. Before getting into details, it’s crucial to understand in which condition a user needs to set default file and folder permission.
Sometimes users may face issues with apps or programs not running correctly on Windows computers, or they want to troubleshoot user profile problems. In such a condition, restoring user permissions to default can resolve the issue successfully.
We will cover three methods to reset all user permission to default, which are like
- Run icacls command
- Run the secedit command
- Use subinacl Tool
Remember, you may need admin permission to execute these commands.
1] Run Icacls Command
The icacls command permits the user to view, modify and reset file system permissions on files and folders. Icacls command-like utility has a reset option that can replace ACLs default inherited ACLs for all matching files. Before executing the Icacls command, the user must take ownership of the folders on Windows. Then, open the Command Prompt on Windows, run as an administrator window, and type the following command.
icacls * /t /q /c /reset
Now press the Enter key to execute the command successfully. This will reset all the user permissions to default for every folder, subfolder, and file.
In the above command, the parameters are explained like:
- *-This wildcard character includes all folders within the directory.
- /t- it aims all the subfolders and files within the current folder.
- /q-Run command without displaying success messages.
- /c-Continues the operation even if errors occur.
- /reset-This parameter resets the permission options to their default values.
2] Run Secedit Command
Windows offers the Secedit command to analyze and configure system security. To reset all user permissions using this command, run the command prompt with admin access, then type the following command.
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
Now press the Enter Key to execute the command, wait for the process’s completion, and restart your PC. This will reset the user permissions to the default system settings.
3] Use Subinacl Tool
If you are uncomfortable using the command prompt, you can reset the file and folder permission to default with the help of the subinacl tool. This is a command-line utility from Microsoft that can help users to reset user permissions. Follow the below process the use this tool to reset permission as default.
- Download the Subinacl tool from Microsoft’s webpage from here. When you open the page, the download starts automatically. If not, then wait 30 seconds and click the link.
- It was once downloaded; double-click on the installer package. This will open the installation wizard. Click on Next and accept the license agreement terms.
- Now set the path as C:\Windows\System32 and click on the Install Now button. Wait for the subinacl tool to be installed successfully.
- After installing, open Notepad, type the commands, and save it as a cmd file.
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f subinacl /subdirectories %SystemDrive% /grant=administrators=f subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f subinacl /subdirectories %SystemDrive% /grant=system=f
- Now run this file by double-clicking it to reset the user permissions to default.
Conclusion
In this post, we have discussed three methods to reset file and folder permissions to default in Windows. Try each method to understand which one suits you better. Remember, user permission always plays a vital role in PC security.
If you ever experience a user permission issue, you must reset them to their default settings. Windows permission change is always tricky because you cannot return to the default permission once you change it.
-
Home
-
News
- How to Reset All User Permissions to Default in Windows 11/10
By Stella | Follow |
Last Updated
For some reason, you might want to reset all user permissions to default in Windows 10 or Windows 11, but you don’t know how to do it. To help you solve the problem, MiniTool Software introduces 3 solutions in this post.
Encountering problems with apps or programs not functioning correctly on your Windows computer? To reset all user permissions to default offers the solution you need.
Similarly, when tackling user profile issues, you can reset user permissions in Windows. In this article, we will explore three distinct methods for resetting all user permissions: using the Icacls command, the Secedit command, and the Subinacl tool.
Way 1. Employ the Icacls Command to Reset All User Permission in Windows
The Icacls command empowers you to inspect, adjust, and reset file system permissions on files and folders. To reset Windows Update permissions with this command, begin by assuming ownership of the folders in Windows.
Step 1. Run Command Prompt as administrator in Windows.
Step 2. Copy and paste the following command to Command Prompt:
icacls * /t /q /c /reset
Step 3. Press Enter to execute the command. This action will reset all user permissions to their default state for every folder, subfolder, and file within the current working directory.
Here’s an explanation of the parameters used in the command:
- *: This wildcard character includes all folders within the current directory.
- /t: It targets all the subfolders and files within the current folder.
- /q: Runs the command without displaying success messages.
- /c: Continues the operation even in the presence of errors.
- /reset: This parameter restores permission options to their default values.
Way 2. Utilize the Secedit Command to Reset User Permissions in Windows
Windows offers the Secedit command to configure and analyze system security. To reset all user permissions to default with this command, you can use these steps:
Step 1. Launch the command prompt with administrator privileges.
Step 2. Copy and paste the following command:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
Step 3. Press Enter to execute the command. Wait for the process to complete and restart your computer to reset user permissions to the default system settings.
If you prefer not to use the command prompt, you can utilize the Subinacl tool, a command-line utility from Microsoft for resetting user permissions. Here’s how to do it:
Step 1. Download the Subinacl tool from Microsoft’s webpage, and run the installer package.
Step 2. Accept the license agreement terms.
Step 3. Specify the destination folder as C:\Windows\System32 (or the appropriate path if Windows is installed on a different drive).
Step 4. Install the Subinacl tool.
Step 5. Open Notepad and input the provided commands to the Save As window. Name the file Reset.cmd and save it to the Desktop.
Step 6. Double-click on Reset.cmd to initiate the process, which may take some time to complete.
Step 7. Close any running programs and restart your computer to reset your Windows Update permissions to their default settings.
Introducing Data Recovery Software
If you are looking for the best free data recovery to help you recover lost and deleted files in Windows, you can try MiniTool Power Data Recovery.
You can use this software to recover deleted photos, videos, documents, and more from hard drives, SDDS, USB flash drives, etc.
MiniTool Power Data Recovery FreeClick to Download100%Clean & Safe
This data restore tool can work under different situations:
- Files and folders deletion.
- Drive formatting.
- Hard drive failure.
- Hard drive inaccessible.
- OS crash.
Conclusion
These are three distinct methods you can employ to reset user permission settings in Windows 11/10. We hope these are the methods you are looking for.
About The Author
Position: Columnist
Stella has been working in MiniTool Software as an English Editor for more than 8 years. Her articles mainly cover the fields of data recovery including storage media data recovery, phone data recovery, and photo recovery, videos download, partition management, and video & audio format conversions.
How to Reset Permissions in Windows 11
Windows 11 delivers a more refined experience compared to its predecessors, but like any operating system, it can encounter issues, particularly concerning file and folder permissions. Permissions in Windows dictate who can access, modify, or execute files. Incorrect permissions can arise from incorrect settings, copying files from different locations, or residual settings from upgraded versions. In this comprehensive guide, we will explore resetting permissions in Windows 11 thoroughly, covering user interfaces, command-line options, and third-party tools.
Understanding File and Folder Permissions
Before diving into resetting permissions, it helps to understand what file and folder permissions are and how they work in Windows. Permissions define users’ rights over files and directories and are broken down into several categories:
- Read: Allows users to view the contents of a file or folder.
- Write: Permits users to change the contents of a file or folder.
- Execute: Grants users the right to run an executable file.
- Delete: Lets users remove a file or folder.
Permissions can be assigned explicitly to users or groups or inherited from parent folders, allowing flexible management according to needs. However, misconfigured permissions can prevent access, leading to frustration.
Causes of Permission Issues
There are several reasons you might encounter permission issues in Windows 11, including:
- User Account Control (UAC) Settings: High UAC settings can restrict permissions unexpectedly.
- Transferring Files: Copying files from one location to another can sometimes alter permission settings, especially if those files originally belonged to a different user.
- Upgrading from Previous Windows Versions: Sometimes, permission settings from an older Windows installation can be carried over, causing inconsistencies.
- Malware: Infections can corrupt or change file permissions.
Resetting Permissions Using Windows Settings
One of the simplest methods to reset permissions in Windows 11 is through the Graphical User Interface (GUI). Here’s how to do this for files and folders:
-
Locate the File or Folder:
- Use File Explorer to navigate to the location of the file or folder whose permissions you want to reset.
-
Access Properties:
- Right-click on the target file or folder and select “Properties” from the context menu.
-
Go to the Security Tab:
- In the Properties window, click on the “Security” tab. This tab displays a group or user names list with permissions set for each.
-
Edit Permissions:
- Click the “Edit” button. You may require administrator privileges for this option. In the Permissions window, you’ll see different users and their respective permissions.
-
Reset Permissions:
- To reset permissions, you might want to click on “Add” to add a user or group and set permissions accordingly, or you can remove existing users to eliminate unwanted permissions.
-
Advanced Security Settings:
- For more advanced options, click on “Advanced.” In the Advanced Security Settings window, you can reset ownership and permissions.
- Click on the “Change” link near “Owner,” type your user account name in the text box, and check “Replace owner on subcontainers and objects” to apply changes to subfolders and files.
-
Apply Changes:
- Click “OK” to apply the changes. You’ll then return to the Security tab where you can finalize by clicking “Apply” and “OK.”
Using Command Prompt to Reset Permissions
For users who prefer the command line, Windows 11 offers powerful tools to reset permissions. It’s especially useful for batch operations or scripting. Here’s how it can be done:
-
Open Command Prompt:
- Search for “cmd” in the Start menu, right-click on “Command Prompt,” and select “Run as administrator.”
-
Use the ICACLS Command:
- The
icacls
tool can modify file and directory permissions. - To reset permissions for a specific file or folder, type the following command and press Enter:
icacls "C:PathToYourFileOrFolder" /reset /T /C /Q
- Here, replace
"C:PathToYourFileOrFolder"
with the actual path. The switches mean:/reset
: Resets the permissions./T
: Applies changes recursively (to all subfolders/files)./C
: Continues processing despite any errors./Q
: Suppresses success messages.
- The
-
Check Results:
- After executing, you can review the changes by typing:
icacls "C:PathToYourFileOrFolder"
- After executing, you can review the changes by typing:
Using PowerShell to Reset Permissions
PowerShell is another robust command-line tool in Windows. Its flexibility allows for more complex scripts. Here’s how to reset permissions using PowerShell:
-
Open PowerShell:
- Right-click the Start Menu and select “Windows Terminal (Admin)” or search for PowerShell in the Start menu and run as administrator.
-
Reset Permissions:
- Use the following command:
Get-Acl "C:PathToYourFileOrFolder" | Set-Acl "C:PathToYourFileOrFolder"
- This command gets the Access Control List (ACL) of the specified file/folder and sets it back, effectively resetting the permissions.
- Use the following command:
-
Recursive Reset:
- If you want to reset permissions recursively for all files and folders inside a directory, you can combine the above command with
-Recurse
:Get-ChildItem "C:PathToYourFolder" -Recurse | Get-Acl | Set-Acl
- If you want to reset permissions recursively for all files and folders inside a directory, you can combine the above command with
Resetting Permissions Using Third-Party Tools
If you find the built-in Windows options cumbersome or insufficient for your needs, several third-party tools can simplify permission management. Some popular tools include:
-
Security Explorer: This tool provides a user-friendly interface to view and manage permissions. It allows batch management and easily transfers permissions from one object to another.
-
SetACL: This powerful command-line utility can quickly adjust and manage permissions for files, folders, and registry keys. It can adjust permissions in bulk, which can save time for extensive changes.
-
NTFS Permissions Reporter: This tool focuses on reporting permissions within NTFS file systems, enabling you to audit and analyze permissions life more straightforwardly.
Additional Considerations
When resetting permissions, here are a few points to keep in mind:
- Backup Important Data: Before making mass changes, always back up your critical files.
- User Account Control: If you continually receive permission errors, consider adjusting User Account Control settings.
- Enable Hidden Files and Folders: Sometimes issues arise because you are not looking at all files. Enable hidden items within File Explorer.
Common Scenarios Where Permission Reset Is Needed
-
After Upgrading Windows: New installations of Windows can sometimes lead to permission issues inherited from older installs.
-
File Sharing Issues: If you are in a shared folder and encounter access problems, resetting the permissions may resolve these.
-
Transferring Data from Another OS: Moving files from, for instance, a Linux filesystem or a different Windows version can result in unexpected permission settings.
-
Error Messages: If you frequently encounter “Access Denied” messages or issues saving files, resetting permissions might clarify the issue.
Conclusion
Resetting permissions in Windows 11 can seem complex, but understanding the foundations of permissions and following the outlined methods can help streamline the process. Whether you prefer using a graphical approach or command-line utilities, the tools and techniques described will empower you to manage your file and folder permissions effectively. By ensuring that permissions are properly set, you can avoid access issues that can disrupt your workflow and maintain the integrity of your data storage.
While Windows 11 enhances user experiences, being equipped to troubleshoot permissions will ensure you have a smoother time utilizing your system, keeping it secure, streamlined, and functional well into the future.
Yesterday, we saw how to quickly reset permissions for a file or folder in Windows 10. To save your time, you can add a special context menu. Here is how it can be done.
NTFS is the standard file system of the Windows NT operating system family. Starting with Windows NT 4.0 Service Pack 6, it supported the concept of permissions which can be configured to permit or restrict access to files, folders, and other objects locally and over a network.
By default, almost all system files, system folders and even Registry keys in Windows 10 are owned by a special built-in user account called «TrustedInstaller». Other user accounts are set to only read the files.
As a user accesses each file, folder, registry key, printer, or an Active Directory object, the system checks its permissions. It supports inheritance for an object, e.g. files can inherit permissions from their parent folder. Also every object has an Owner which is the user account that can set ownership and change permissions.
If you are interested in managing NTFS permissions, refer to the following article:
How to take ownership and get full access to files and folders in Windows 10
Permission types
In short, there are two types of permissions — explicit permissions and inherited permissions.
There are two types of permissions: explicit permissions and inherited permissions.
-
Explicit permissions are those that are set by default on non-child objects when the object is created, or by user action on non-child, parent, or child objects.
- Inherited permissions are those that are propagated to an object from a parent object. Inherited permissions ease the task of managing permissions and ensure consistency of permissions among all objects within a given container.
By default, objects within a container inherit the permissions from that container when the objects are created. For example, when you create a folder called MyFolder, all subfolders and files created within MyFolder automatically inherit the permissions from that folder. Therefore, MyFolder has explicit permissions, while all subfolders and files within it have inherited permissions.
Effective permissions are based on a local evaluation of the user’s group membership, user privileges, and permissions. The Effective Permissions tab of the Advanced Security Settings property page lists the permissions that would be granted to the selected group or user based solely on the permissions granted directly through group membership.
By resetting effective permissions, you will restore NTFS permissions of files and folders back to their default inherited permissions.
Before proceeding, ensure that your user account has administrative privileges.
To add the Reset Permissions context menu in Windows 10, do the following.
- Download the following ZIP archive: Download ZIP archive.
- Extract its contents to any folder. You can place the files directly to the Desktop.
- Unblock the files.
- Double click on the Add Reset Permissions Context Menu.reg file to merge it.
- To remove the entry from the context menu, use the provided file Remove Reset Permissions Context Menu.reg.
The context menu command is available for files:
For folders, it appears as a submenu. From there, you can reset permissions for the selected folder only, or process all its files and subfolders.
How it works
The context menu executes the following commands:
- reset permissions for a file:
icacls "full path to your file" /reset
. - reset permissions for a folder:
icacls "full path to the folder" /reset
. - reset permissions for a folder, its files, and subfolders:
icacls "full path to the folder" /reset /t /c /l
.
PowerShell is used to escalate privileges for the icacls
process by starting it as Administrator in a command prompt instance.
That’s it.
Related articles:
- Quickly Reset NTFS Permissions in Windows 10
- Add Take Ownership Context Menu in Windows 10
- Backup Permissions For Files and Folders in Windows 10
- Add View Permissions Context Menu in Windows 10
- Add View Owner Context Menu in Windows 10
- How to restore the TrustedInstaller ownership in Windows 10
- How to take ownership and get full access to files and folders in Windows 10
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won’t take a lot from you, but it will help us grow. Thanks for your support!