With the fact that operating systems like windows 7 andthe above often give messages that the folder does not have access, most users are familiar with. Sometimes it is blocked for system security, sometimes the problem lies in the so-called “super administrator” account or in the TrustedInstaller system. Now it will be considered how to open access to Windows 7 folders, including individual files and registry keys.
Blocking access attempts to createany actions with files, folders, or registry keys in most cases are associated only with security considerations (so that the user, unknowingly or accidentally, cannot change objects that are vital for the system).
However, it is often possible to meetmessages that there is no access to the folder, even, it would seem, for the most common objects that are not related to the system. It may well be that such objects simply have an attribute that prohibits their opening or editing. In the simplest case (for example, for executable EXE files), they should be opened on behalf of the administrator.
On the other hand, sometimes it is necessary to use system components in order to gain control over computer processes. How to act in such a situation, now and see.
First you need to check whether thelock In the standard "Explorer" or any other file manager, right-click on the file to bring up the context menu and go to the property bar.
Below there are two attributes.In this case, we are interested in the first ("Read Only"). If there is a check mark in front of it, you can view the contents of the file, but you cannot edit or save changes. But this is the most primitive option.
In order to gain access to all elements in Windows 7 and higher, you will have to tackle security settings.
Открыть доступ к папке Windows или отдельному file can only be this way. We click on the selected object with the right mouse button and select the properties menu, where we go to the security tab. At the bottom of the window there is an “Advanced” button, by activating which, we enter additional parameters.
Here we are interested in the "Owner" tab.At the bottom of the window, click the button to change the settings, set the cursor either to your own account or to the administrator group and click the “OK” button. If the setting is made not for the file, but for the directory, you will additionally need to uncheck the line of replacement of the owner of the objects and subcontainers.
In some cases, in the "Explorer" in the view menu on the tab with the same name, it may be necessary to uncheck the box using simple shared access (if the object has such an attribute).
To access key editing andregistry entries, it is not always enough to run the regedit command or executable EXE file of the same name as an administrator. Some subsections may still be uncontrolled, and the system will again display a message stating that the folder does not have access.
In this case, in the left part of the registry is selectedthe necessary subsection, after which a right click is made on it and the context menu is called where you need to select the permissions section. In it we use the Advanced button, and then we repeat the steps described above.
At this stage, you need to use the same security tab, where the button for changing groups and records for a specific object is activated.
Next, click the add button, enter your"Account" and confirm the addition. Now in the lower window in the permissions column in all fields we tick and save the changes. Note that this configuration method is only suitable for single objects (files and directories).
Now let's see how to access the folder using standard command line utilities. These are icacls and takeown commands.
We start the console on behalf of the administrator from the menuRun (cmd). Starting the command line with admin rights is required, regardless of which account the user is currently working on. The only exception is administrator access, which is disabled by default.
Next, the command takes the command takeown / f "full path to the file" (restoring access by reassigning the owner). The path to the file is specified without quotes.
The second command is as follows:icacls “full path to file” / grant “account name”: f. (again, all without quotes). This utility transfers control rights to the selected object of the specified account.
If for any reason the input of these two commands did not give a result, you should reboot the system in safe mode (F8 at system startup), and then perform the operation again.
Here were the most effective and mostsimple methods that allow access to any objects of Windows-based systems. Some experts advise to use the so-called system registry tweaks, but this method is rather time-consuming and is suitable only for users with the necessary knowledge, or system administrators. But in general, you should be very careful with the registry, and when you try to edit it, you should at least make a backup in case of a quick recovery of the system after changing its keys and entries.