
Originally Posted by
projectnew then how can i restore to the default permission?
Practically is very difficult fully restore permissions in Vista - a big obstacle are very subtle permissions.Yes of of course there are commands
takeown,icacls to do it - with ownership shouldn't be any problems but with permissions -yes.See for example this thread:
The Application Failed to Initialize properly (0xc0000022) Click Ok to Terminate the
I've tried restore permissions by using command
icacls -although my scripts theoretically are fully correct practically fail on
C:\Windows. When script meet some file which is busy -system refuse changing permissions for this file -returns error "access denied" although you are already the owner of this file - interesting:in this situation there is no problem to change permissions for this file by using classic method:
Take Ownership of file Folder Permissions
But what important:if this kind of script meet error and can't change permissions for any file -all operation are stopped and don't work later although sometimes can return "success" but really there is no any success.Untill now I thinking (without any destination) how to fully restore permissions but untill now I don't know resolve.
If you have any trouble with permissions you should describe your problem - there is also tool
Process Monitor which use to detect trouble with permissions