- IT миниблог
- О том что нужно не потерять
- Сброс прав доступа и владельца файлов в Windows 10
- Сброс прав доступа и владельца файлов в Windows 10 : 2 комментария
- How to reset File & Folder permissions to default in Windows 10
- How to reset File & Folder permissions to default
- 1] Run icacls command
- 2] Run Secedit command
- Related Posts
- This file came from another computer and might be blocked to help protect this computer
- How to open and a view a JSON file on the web and in Windows 10
- How to convert OXPS File to PDF
- [email protected]
- Reset all user permissions to default in Windows 8.1?
- How to reset all user permissions to default?
- Quickly Reset NTFS Permissions in Windows 10
- Permissions
- Permission types
- Quickly Reset NTFS Permissions in Windows 10
- About Sergey Tkachenko
- 11 thoughts on “ Quickly Reset NTFS Permissions in Windows 10 ”
IT миниблог
О том что нужно не потерять
Сброс прав доступа и владельца файлов в Windows 10
Столкнулся с проблемой: после копирования информации с диска на диск потерял права на доступ к файлам и папкам на диске.
Так же такие проблемы могут появиться при некорректном изменении прав на папки или файлы самим пользователем.
Появляется ошибка при открытии диска “Отказано в доступе”, иногда пропадает возможность удалять или редактировать файлы.
Для решения этой проблемы мы выполним сброс прав доступа и владельца файлов на диск или отдельную папку если нужно с помощью утилиты icacls.exe
icacls.exe показывает или изменяет явные и унаследованные разрешения на файл или папку.
Запускаем командную строку от администратора и выполняем следующую команду:
Icacls.exe «D:\*» /reset /T
В этом примере мы сбрасываем права доступа на права доступа по умолчанию для всех файлов и папок на диске D:
Для сброса владельцев используем утилиту takeown.exe
takeown.exe /f «D:\*» /r /d y
Сброс прав доступа и владельца файлов в Windows 10 : 2 комментария
Reset NTFS file permission — небольшая утилита, которая поможет восстановить или сбросить права доступа к файлам одним щелчком мыши. После запуска выберите папку, в которой вы хотите сбросить действующие разрешения, и после нажмите кнопку GO для выполнения команд.
How to reset File & Folder permissions to default in Windows 10
If you had to change the permissions of files and folder in Windows 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.
How to reset File & Folder permissions to default
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
You will need admin permission to execute the commands.
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—
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-
You may get some warning, but you can safely ignore it.
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.
Date: October 27, 2020 Tags: Files, Folder
Related Posts
This file came from another computer and might be blocked to help protect this computer
How to open and a view a JSON file on the web and in Windows 10
How to convert OXPS File to PDF
[email protected]
Ashish is a veteran Windows, and Xbox user who excels in writing tips, tricks, and features on it to improve your day to day experience with your devices.
Reset all user permissions to default in Windows 8.1?
Win8.1 Permissions problem
HELP REQUIESTED:__________
I need help globally changing the drive C: directory security settings, write protection attributes, possibly «Ownership», back to Windows 7 equivalents, so that the security restrictions appearing during the install of Win8.1 stop restricting my use of the directories normally accessed.
This is a home-machine with me having sole-access, so I’m not concerned about «internal» security (Internet Security is provided by MicroSoft Defender, kept fully updated).
BACKGROUND:______________________
PC with Win7 had problems (probably HDD drivers corrupted through several weeks of BSoD) to the point where it would no longer boot to any disk, repair, restore didn’t help.
Purchased and Installed Windows 8.1 on top.
Install of Win8.1 appeared to be successful.
Windows Upgrade DLed and installed upgrades OK.
Install of Office 2003 and it’s upgrades appeared OK
Install of several other programs appeared OK
HOWEVER, I tried re-installing other programs I had previously used, (versions I had successfully installed on my Wni7 machine of: Quicken, Adobe Acrobat, Photoshop). These installs appeared to fail due to blocked install paths or insufficient permissions to install to those paths.
I examined many of the data directories, My Document dirs, Program File dirs, ProgramData dirs, and all appear to have their WriteProtection attribute set. When I try to change that attribute, IE appears to take the change, but re-inspection of the dir shows no change.
Some directories, I can add or delete entries, even though they indicate as Write Protected.
FYI: MY SETTINGS:______________________
Logged in under my Microsoft Account — Administrator level
File Manager / select drive C:\, RightClick and select Properties, select tab_Security
(All Group or User names show their Permissions to be Full Control)
button_Advanced:
Advanced Security Settings for C:
Owner = SYSTEM
tab_Permissions: (all entries show Full Control)
Everyone = Full Control
ALL APPLICATION PACKAGES
Authenticated Users
SYSTEM = Full Control
Administrators («my account name»\Administrator)
Users («my account name»\Users)
TrustedInstaller
Examples of who owns various important directories:, FYI:
Owned by SYSTEM:
C:\
C:\Users\»MyAccountName»
owned by «MyAccountName»
C:\Users\»MyAccountName»\ (all subdirs)
C:\ProgramData
owned by TrustedInstaller
C:\Windows
C:\Program Files
NOTES:____________________________
Fixes that use Rollbacks, System State backups, or Undo won’t help me as it’s a new install of Win8.1
I’ve seen several Answers, mostly relating to Vista or Win7, that don’t seem to apply.
I tried using the Subinacl Tool but it won’t install (due to insufficient permissions!), and it’s documentation doesn’t make it clear it’s for Win8+ anyway.
If I don’t get a fix pretty soon, I’m gong to pull out my old Win7 disk and do a virgin install of it, and have to spend another couple of weeks re-installing and configuring all my old software. Please help.
How to reset all user permissions to default?
I accidentally stopped a user permission change task and now my system is all messed up, programs won’t load correctly after reboot, etc.. . I can’t change the permissions back because it tells me that I do not have access to certain folders. When I try to find these folders to change them manually, for some reason they are not visible any more. (I have show hidden files to show them)
I tried a system restore and the restore points are corrupt, so, I have been looking for a way to reset all permissions to default or factory setting if you will.
Is there any way to reset all permissions to default without going one by one?
Any help will be much appreciated!!
Welcome to Microsoft Answers!
You will need to run ‘Subinacl Tool’ to reset the permission to normal. To reset system permissions, follow the steps:
1. Download subinacl.msi from the following link, and save it on the desktop.
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en#AffinityDownloads (http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en#AffinityDownloads)
2. On the desktop, double-click subinacl.msi to install the tool.
3. Select C:\Windows\System32 as the destination folder.
Note This step assumes that Windows is installed in C:\Windows. If Windows is installed elsewhere, select the appropriate path to .\System32.
4. Open Notepad.
5. Copy the following commands and then paste them into the opened Notepad window.
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
6. In Notepad click File, Save As, and then type: reset.cmd
7. In Notepad click Save as type, and then select All Files (*.*).
8. Save the reset.cmdfile to your desktop, and close Notepad.
9. Double-click the reset.cmdfile to reset the Windows Update permissions.
Note This step may take several minutes, so please be patient. When the permissions have been reset, you will be prompted with «Finished, press any key to continue.»
10. Press any key to complete the installation.
Check if you have the right permissions to all the folders for all users.
For more information you may check the article given below. The article given is for Windows XP updates, but still holds good for Windows Vista as well as Windows 7.
Hope this information is helpful.
Microsoft Answers Support Engineer
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Quickly Reset NTFS Permissions in Windows 10
Sometimes you need to reset custom NTFS permissions applied to a file or a folder in Windows 10. After performing this operation, all custom access rules will be removed, and inherited permissions will be restored.
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.
Permissions
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:
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.
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.
Quickly Reset NTFS Permissions in Windows 10
To reset NTFS Permissions in Windows 10, do the following.
- Open an elevated command prompt.
- Run the following command to reset permissions for a file: icacls «full path to your file» /reset .
- To reset permissions for a folder: icacls «full path to the folder» /reset .
- To reset permissions for a folder, its files, and subfolders, run the command icacls «full path to the folder» /reset /t /c /l .
Substitute the example paths with the actual values matching your system.
Here are some screenshots.
Default (inherited) permissions:
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
Share this post
About Sergey Tkachenko
Sergey Tkachenko is a software developer from Russia who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.
11 thoughts on “ Quickly Reset NTFS Permissions in Windows 10 ”
Yikes! Bad ads! https://i.postimg.cc/NLhJtcWY/Untitled.png
I don’t see any ads over here, honestly. https://www.facebook.com/photo.php?fbid=1957837557644690&set=a.438863999542061&type=3&theater
‘Version 0.14 is released on February 6, 2019.’
s/b
‘Version 0.14 was released on 6th February, 2019.’
hth
Thank You so much
You saved a huge time for me by only a command
Thaaaaaaaaaaaaanks
Doesn’t work on me: getting a lot of “Access denied” 🙁
Well, win10 64bit #1709.
I tried it on c:\, it resulting in:
Successfully processed 0 files; Failed processing 4308 files.
c:\>
Might this work on a system that doesn’t even boot into safe mode? So, can you run it from a running Windows system that is not the one you want to fix? I’m running an external Windows to go system, win 10 1607 and it’s my internal hard drive that I need to fix. Luckily, I can get into safe mode as an administrator, so I will try it. I deleted all the s-1-5 entries in that registry, not knowing that it was important.
Hello, I had an issue a couple Windows 10 updates ago, the permissions for D:\Program Files\ and sub folders changed (not Windows install drive btw) and some games complain when running they can’t open this or that file. I use the icacls command and it seems to work but after reboot the permissions are re-applied and the issue return. Any idea how to make them permanent?
What are permissions after the restart? To which state they go?