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.
Команда netsh winsock reset для сброса стека сетевых протоколов. Устраняем Полтергейст
Друзья, всем привет. С наступающим вас cтарым Новым годом! Хорошо когда праздники так часто идут друг за другом. Но тем не менее про работу тоже забывать не надо, особенно когда она по душе.
И вот сегодня мы поговорим про команду netsh winsock reset . Расскажу, что за зверь такой и для чего нужен. На самом деле, с ее помощью я уже не раз за свой скромный администраторский опыт восстанавливал работоспособность локальной сети .
Содержание сети:
Итак, иногда с компьютером могут начать происходить не совсем понятные вещи, например, такие как:
Отсутствие пинга по IP-адресу, но доступность по имени или наоборот. При этом стандартные настройки не менялись.
Падение скорости закачки файлов из интернета, а также полный обрыв соединения через некоторое время после включения ПК.
Невозможность подключения к сети с настройками IP-адресов вручную, при этом в автоматическом режиме все работает. Хотя опять же, все может быть и наоборот.
Невозможность получить автоматический IP-адрес при настроенном DHCP-сервере.
Отсутствие каких-либо значений IP-адреса, шлюза и маски подсети при активном соединении с локальной сетью.
В общем, когда с сетевыми настройками машины начинают происходить необъяснимые глюки, нам поможет netsh winsock reset. Именно с помощью этой команды можно восстановить сетевые параметры на умолчания и возобновить работоспособность.
Также эту процедуру называют сбросом стека протокола winsock и практически всегда она применяется вкупе со сбросом TCP/IP. То есть происходит обнуление компонентов Windows, которые отвечают за сетевые подключения.
Теперь о том, в результате чего происходят такие неполадки. Тут, как говорится, для беды много не надо. Частенько к такому приводят вирусы, проникшие на компьютер, различные конфликты либо некорректная установка драйверов сетевых карт и все такое прочее.
Но хватит теории, давайте переходить к делу. Только помните, что в результате такого сброса все настройки сети на ПК также будут удалены. Поэтому изучите их заранее. Особенно это может быть важно на служебных компьютерах с выделенными каналами связи .
Итак, открываем командную строку и вводим следующую комбинацию команд. Скриншот ниже сделан в среде операционной системы Windows XP, но и в Win 10 все будет происходить идентично, только запускать «cmd» нужно от имени администратора:
Затем следует обязательно перезагрузить компьютер и можно проверять поведение в сети на адекватность. Кстати, совсем забыл сказать, перед сбросом стека протокола winsock желательно основательно пролечить систему, иначе все может повториться. Помните, Полтергейст может вернуться, а это страшно.
Resetting NTFS files security and permission in Windows
I was running Vista with two NTFS partitions (C: and D:), then formatted C: partition and installed Windows 7. The second partition (D:) had some files security set on files and folders.
After Windows 7 was installed, some files on drive D: were not accessible anymore and I was getting “Access Denied”. I tried to right-click/properties on the folders that were not accessible and changed their owner and changed permissions but still some folders were still inaccessible not matter what I did.
After some research, it turned out the tool “cacls” that allows one to display or change ACLs (access control lists) can help to reset ACLs. In Windows 7 it is called “icalcs”.
To reset files permissions, follow these easy 3 steps:
Step 1: Run “cmd” as Administrator.
Note: In MS Windows 8 and above, press the Win+X keys, then choose “Command Prompt (Admin)”.
Step 2: Go to the drive or folder in question, for example:
Step 3: To reset all the files permissions, type:
That’s it! After that, the files permissions were reset and I could access them back again.
Very Important note:
Step 3 is irreversible. Make sure you backup the permissions before you proceed!
It is possible that “icacls” might fail. For that try to take ownership of the files first. Just before Step (3), please type the following command:
Do you want to master Batch Files programming? Look no further, the Batchography is the right book for you.
Available in print or e-book editions from Amazon.
You might also like:
Share this:
Like this:
Related
150 Replies to “Resetting NTFS files security and permission in Windows”
Fantastic!! Thank you so very much for sharing. I messed-up my permissions and this did the trick.
i did this but it didn’t work because i got access denied on all files in my D drive
Before running this command, do the following:
1. Right click on the folder in question then choose Properties
2. Select the Security tab.
3. Click the Advanced button.
4. Select the Owner tab.
5. Click Edit
6. Select your user name and check the box marked Replace owner on subcontainers and objects.
7. Click OK
Now you should be able to run the command mentioned in this article successfully.
Thanks! This did the trick for me!
Dude! Awesome! This is what finally worked for me. I have spent hours over days trying to fix this and only by doing your method did it work for me. Gracias…
yes!! it finally worked after hours of web searching. that was immensely helpful and did the trick. thank you!
Tanx a million. I were loosing all my photos and videos! it helped me:)
thx sir i full day up said for thiz problam thank u
And that can I do when I am missing Security tab?
Then proceed as normal.
I had this problem with a client’s Vista laptop hard drive that would not boot at all and had no restore point to recover from. None of the usual tricks to make Windows work again would coax it back to boot – even in safe mode. Curiously, the hard drive itself passed ALL diagnostics with Linux tools such as Parted Magic and Knoppix as being a happy home for data. It’s purely a Windows thing.
After losing most of the rest of my very short hair and somewhat sane mind, I did a lot of research on forums such as this and found a trick that worked. Boot into safe mode and the drive is accessible. None of the dreaded Access is Denied foolishness. (Of note, the drive is mounted in a USB to SATA external enclosure.) Files can easily be copied to a flash drive or even the primary hard drive Windows has booted from.
Here’s something to note. If the volume is not accessible in regular Windows mode but has a drive letter, try to use a system level tool such as antivirus app, malware bytes, etc. and see if it will scan it. If it will, you’ll be able to see the files listed as the tool does its thing.
If you don’t fancy using Safe Mode to access the volume, it is possible to right click on the drive letter, choose Properites, then the Tools tab and use Windows Backup to backup selected folders to another drive. Then reverse the process and restore the backup to a different destination. It’s time consuming to do it this way and requires a little more know how and careful attention than booting into safe mode, but it does work.
Hope this helps save someone.
By the way, the Takeown command “worked” in that it granted access to every file and folder on the stubborn drive, but it didn’t help because the Access is Denied message wouldn’t permit the drive to be mounted in the first place.
I would suggest using the graphical utility (http://lallouslab.net/2013/08/26/resetting-ntfs-files-permission-in-windows-graphical-utility/) because it has an option to take ownership before resetting the permissions.
Please try it and let me know if that really helps or not.
Even when I go to change the ownership of the objects thru Properties> Advance> Security option, it says ‘Access Denied’ (even when mine is a fully admin account).
I’m unable to take ownership or change permissions to main windows folders in C drive.
Likewise, even running from safe mode cmd prompt as administrator I got access denied on all files and folders even though I know I’m owner with full permissions on many of the folders I tried. Any thoughts?
@alrieza, Jonny: I would suggest trying to run cmd as system account then trying to reset the permissions.
You need PsExec tool.
WindowsITPro link broken, here is new linky
recomend to do this in windows repair environment worked like a charm it didnt work in safe mnode for me neither
thanks for this post !
It solved my problem
thanks alot solved 100 problems of mine .
i tried FIXIT from microsoft Not workes but this worked like a charm
with regards
Kutub
Hey I just wanna say thanks a lot for this fix it helped me after I tried to restrict access to the Guest account and messed up the permissions. This system is so convoluted!
Likewise, even running from safe mode cmd prompt as administrator I got access denied on all files and folders even though I know I’m owner with full permissions on many of the folders I tried
I want to change the permissions on the users folder in windows 7 back to the defualts. When I try this however, it gives access denied and also that “the system cannot find the path specified”. I am the owner and have administrator rights.
I have played around with the permissions and think I messed something up. Now my backup program, syncback, runs into the infinite application data loop on the defualt folder in the users folder.