Hello friends! The other day, once again, I came across an error when starting some system services. Why do I say that again? The fact is that I have already met her not for the first time, but somehow I could not get to the description of the ways by which I successfully coped with error 5.

So we meet several possible solutions, which can help you in case of problems with starting services, namely “ Errors 5. Access Denied". In general, first I will describe the very essence of the error that I am talking about, so that you can determine the same problem you have or something completely different.

So, by opening the service menu and selecting the item I need, I get into their properties, where in the item about the method for starting the service, I set the value "Automatic", and also click on the "Start" button to start it immediately. But alas, instead of a successful start, a small window is displayed on the screen, with a rather strange message that the service could not be started due to "Error 5. Access denied".

This message surprised me that it said there was a lack of rights, although I was working on a computer, logged in using the system account administrator, and as you know, there are all possible rights to change the properties and settings of the operating system.

How do I resolve the Error 5 issue?

There are a lot of solutions to this kind of problem, namely, fixing the causes of the "error 5. Access denied" when starting the services, it all depends on the situation the user is faced with. Further, I, as usual, will not describe a one hundred percent method that will help everyone, since there is none, but I will write about how I got out of this situation with a positive result.

I found some examples of how to fix error 5 on the Internet, but I got to others myself. In general, let's see what in my practice helped to get rid of problems with starting services, but you will try to do the same for yourself, perhaps one of the options I have proposed will suit you.

"Error 5. Access denied" when starting system services, solutions

1. Opening full access to the "C" drive. I do not know why this is so, but I have come across computers where the security of the system disk was set exclusively for reading and nothing else, and this parameter was set for all accounts. But, as soon as I returned all the security checkboxes, error 5 disappeared forever, and the service started its work without any problems.

To return the rights, you need to go to the properties window of the system drive "C" and go to the tab " Security". Having missed the list of users and groups, we go down to the buttons "Change" - "Add".

In the appeared area, with our hands on the keyboard we type the word “ Everything”, Which means that we will set the same access rights for absolutely all users of the system.

If everything is so, then you made no mistakes in the previous step, click on "OK".

For those who are still Windows user XP, you should pay attention to the fact that by default you may not display the "Security" tab. In order to return it to its place, follow a few simple steps.

  1. Open any folder;
  2. At the top, click on "Service";
  3. "Folder properties";
  4. "View";
  5. In the list of additional parameters, uncheck the use of simplified shared access.

After that, we perform the above actions and, of course, check whether you managed to cope with error 5 using this method or not.

2. Also, there is another way that I got on the Microsoft support pages. After seeing this advice in the comments, I decided to try it and the problem with error 5 when starting the service was solved.

The first step is to open command line on behalf of the administrator, if you are on this particular account, then you can stop worrying and just open cmd using "Run".

Now, in the window that appears, we register this: net localgroup Administrators / add networkservice (Important: if you have English. OS then instead of Admin. specify Administrator) and press the "Enter" key.

Then we do this: net localgroup Administrators / add localservice . (Administrators)

When finished with the commands, close the command prompt window and restart the computer.

If the commands were entered correctly and you are in luck, then error 5 that prevents the services from starting should disappear, and the services themselves will start without any access denied messages.

3. We are trying to fix the access denied error when starting services using the operating system registry.

But, before we rush to crumble our registry, we need to first find out the name of the service that does not want to start. To do this, in the list of services, open the properties of the service we need and look at the line “ Service name". Having memorized it, we go directly to work with the registry.

Registry Editor - launch it using the "Run" window. If you do not understand what it is about, then you.

You should be presented with a large list of services in alphabetical order. In order to understand what kind of service we need, I said to look at its name in the properties. So we are looking for a section with the appropriate name, right-click to bring up the section menu and select the line “ Permissions».

The same security setting should be displayed as I described in the first paragraph. In general, we are looking for full access in the "Administrators" and "Users" groups.


If they are absent there at all, then we correct this matter, in the same way as I showed it at the beginning of the article.

4. Consider one more point, which is also related to access to the C drive, only this time not for all users, namely LOCAL SERVICE.

So, again we go into the security properties of the system disk. Further, after the list of users and groups, click on the "Add" button.

In the window that appears, click on "Search". As a result, a list should appear from which we need to select "" and click on the "OK" buttons.

This group should be added to the user's list, now for going down a little lower to the "Permissions for LOCAL" window, set all possible checkboxes and apply the changes.

In theory, the service should start after that, but error 5, disappear without a trace.

5. Alternatively, you can also disable or remove your antivirus and try to start the service without it. The fact is that some anti-virus programs besides software additionally install their services that could take away your rights to enable or disable some local services.

6. Well, and a hundred percent option, of course, is, I know that it is not suitable for everyone, but I can tell you with confidence that it will definitely help you get rid of error 5 with denial of access to start the service, and, in addition, it will save the computer from other various glitches and problems 🙂

On this I will probably finish my article, but if at least one of the above options helps you, then do not forget to join us

After performing a planned upgrade on the working computer, in the process of transferring files and folders from the old disk to the new one, there was a problem with the fact that the system did not give access to some files and folders of the old disk (for example, to the user's files in the users folder), arguing that they had another owner. When trying through the menu " Properties» — « Security» ( select your user, check the box " Full access» — « Apply« ) an error was given “ Error applying security settings to folder **** "

A quick googling helped me find a simple and proven solution.

All you need to get the tool to change the owner of a folder or file is the following changes:

Attention! If you do not know how and where to add them, you do not need to do this, just download the file from the link "Download tweak" under the desired option and after downloading - click on it right click mouse and in the menu that appears, select the item " Merge» — « Yes". It will be safer than without the necessary knowledge ...

If you have Russian Windows 7 , then these lines need to be added to the registry:

@ = "Change owner" "Extended" = "" "NoWorkingDirectory" = "" @ = "cmd.exe / c takeown / f \"% 1 \ "&& icacls \"% 1 \ "/ grant administrators: F" " IsolatedCommand "=" cmd.exe / c takeown / f \ "% 1 \" && icacls \ "% 1 \" / grant administrators: F "@ =" Change owner "" Extended "=" "" NoWorkingDirectory "=" " @ = "cmd.exe / c takeown / f \"% 1 \ "/ r / dy && icacls \"% 1 \ "/ grant administrators: F / t" "IsolatedCommand" = "cmd.exe / c takeown / f \ "% 1 \" / r / dy && icacls \ "% 1 \" / grant administrators: F / t "

What if english, then a little differently. The difference is that the Russian and English versions have different names for user groups. Therefore, if you choose the wrong option, it will not work:

@ = "Take ownership and set full access to the object" "Extended" = "" "NoWorkingDirectory" = "" @ = "cmd.exe / c takeown / f \"% 1 \ "&& icacls \"% 1 \ "/ grant administrators: F "" IsolatedCommand "=" cmd.exe / c takeown / f \ "% 1 \" && icacls \ "% 1 \" / grant administrators: F "@ =" Take ownership and set full access to the object " "Extended" = "" "NoWorkingDirectory" = "" @ = "cmd.exe / c takeown / f \"% 1 \ "/ r / dy && icacls \"% 1 \ "/ grant administrators: F / t" " IsolatedCommand "=" cmd.exe / c takeown / f \ "% 1 \" / r / dy && icacls \ "% 1 \" / grant administrators: F / t "

After adding this data to the registry, you need to hold down and do not release Shift, click on the problem folder or file with the right mouse button and select the item " Change of owner«.

How to solve error 490, error 455, error 489 in Windows Server 2012 R2-01

Hello everyone today I will tell you how to solve error 490, error 455, error 489 in Windows Server 2012 R2. In fact, each of these errors boils down to one solution. Let's take a closer look at the error text.

Event ID 455: sqlservr (5216) Error -1032 (0xfffffbf8) when opening log file C: \ Windows \ system32 \ LogFiles \ Sum \ Api.log

Event ID 489: sqlservr (5216) Failed to open file "C: \ Windows \ system32 \ LogFiles \ Sum \ Api.log" read-only, system error 5 (0x00000005): "Access denied." File open operation will fail, error: -1032 (0xfffffbf8).

Event ID 490: sqlservr (5216) Failed to open file "C: \ Windows \ system32 \ LogFiles \ Sum \ Api.chk" for reading / writing, system error 5 (0x00000005): "Access is denied." File open operation will fail, error: -1032 (0xfffffbf8).

Here are screenshots of these errors.


How to solve error 490, error 455, error 489 in Windows Server 2012 R2-02


How to solve error 490, error 455, error 489 in Windows Server 2012 R2-03


How to solve error 490, error 455, error 489 in Windows Server 2012 R2-04

We see that in each of the cases MS SQL 2012 cannot get into the C: \ Windows \ system32 \ LogFiles \ Sum \ folder. There are two solutions to disable UAC for the account under which Microsoft SQL 2012 is launched and, more correctly, to give access rights to this folder for the account under which the sequel is launched.

This is how error 490, error 455, error 489 in Windows Server 2012 R2 can be easily solved.

pyatilistnik.org

Error 0x80070005 access denied in Windows 8.1

Error 0x80070005 access denied-00

Hello everyone today I will tell you how the error 0x80070005 "Access denied" in Windows 8.1 is solved most often in three cases - during installation Windows updates, activating the system and when restoring the system. If a similar problem occurs in other situations, as a rule, the solutions will be the same, since the cause of the error is the same. In this manual, I will describe in detail the methods that work in most cases to fix the system restore access error and install updates with the code 0x80070005. Unfortunately, the recommended steps are not guaranteed to fix it: in some cases, you need to manually determine which file or folder and which process needs access and grant it manually. The following will work for Windows 7, 8 and 8.1 and Windows 10.

Fixing error 0x80070005 using subinacl.exe

The first method is more related to error 0x80070005 when updating and Windows activation, so if you have a problem while trying to restore the system, I recommend starting with the next method, and only then, if it does not help, return to this one.

First, download the subinacl.exe utility from the official Microsoft website and install it on your computer. At the same time, I recommend installing it in some folder close to the root of the disk, for example C: \ subinacl \ (it is with this location that I will give an example of the code below).

After that, launch Notepad and enter the following code into it:

@echo off Set OSBIT = 32 IF exist "% ProgramFiles (x86)%" set OSBIT = 64 set RUNNINGDIR =% ProgramFiles% IF% OSBIT% == 64 set RUNNINGDIR =% ProgramFiles (x86)% C: \ subinacl \ subinacl. exe / subkeyreg "HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Component Based Servicing" / grant = "nt service \ trustedinstaller" = f @Echo Gotovo. @pause


Error 0x80070005 access denied-02

Right-click on the created file and select "Run as Administrator". Upon completion, you will see the inscription: "Gotovo" and an offer to press any key. After that, close the command prompt, restart your computer and try the operation that was giving error 0x80070005 again.

If the specified script did not work, try another version of the code in the same way (Attention: the code below may cause Windows to malfunction, run it only if you are ready for this outcome and you know what you are doing):

@echo off C: \ subinacl \ subinacl.exe / subkeyreg HKEY_LOCAL_MACHINE / grant = administrators = f C: \ subinacl \ subinacl.exe / subkeyreg HKEY_CURRENT_USER / grant = administrators = f C: \ subinacl \ subinacl.exe / subkeyES grant_reg HKEY_CLASS = administrators = f C: \ subinacl \ subinacl.exe / subdirectories% SystemDrive% / grant = administrators = f C: \ subinacl \ subinacl.exe / subkeyreg HKEY_LOCAL_MACHINE / grant = system = f C: \ subinacl \ subinacl.exe / subkeyreg HKEY_CURRENT_USER / grant = system = f C: \ subinacl \ subinacl.exe / subkeyreg HKEY_CLASSES_ROOT / grant = system = f C: \ subinacl \ subinacl.exe / subdirectories% SystemDrive% / grant = system = f @Echo Gotovo. @pause

After running the script as an administrator, a window will open in which, within a few minutes, access rights to the registry keys, files and Windows folders, when finished, press any key.


Error 0x80070005 access denied-03

This is how the error 0x80070005 is denied access in Windows 8.1 is easily solved.

Material from the site pyatilistnik.org

pyatilistnik.org

Windows 8 / 8.1 | Configuring windows and linux servers - Part 10

Jun 28, 2015 18:55

Hello everyone today I will tell you how to set a computer shutdown timer Windows tools 7, 8.1, 10. This timer can be set using standard Windows 7, 8.1 and Windows 10 tools and, in my opinion, this option will suit most users. However, if desired, you can use special programs to turn off the computer, of course, they can have a number of additional functions, but as practice shows, they are little used and are used for most users.



How to check HDD on errors in Windows via command line-01

Hello everyone, today I will tell you how to check your hard drive for errors in Windows 7, 8.1 and Windows 10 through the command line. Installation of any additional programs is not required. Despite the fact that there are powerful programs for checking disks, searching for bad blocks and fixing errors, their use for the most part will be little understood by an ordinary user (and, moreover, can even harm in some cases). The built-in system check using Check Disk is relatively easy to use and quite effective.



How to change file extension in Windows 7, Windows 8.1-01

Hello everyone today I will tell you how to change the file extension in Windows 7, Windows 8.1. In this tutorial, I will show you several ways to change the extension of a file or a group of files in current versions Windows, and I will also tell you about some of the nuances that a novice user might not even know about.

Among other things, in the article you will find information about changing the extension of audio and video files (and why it is not so simple with them), as well as how to turn text files .txt into .bat or files without an extension (for hosts) - also popular question within this topic.



Error The enumeration of objects in the container could not be completed. Access Denied in Windows 8.1-01

Hello everyone today I will tell you how to solve the error Failed to enumerate objects in the container. Access denied in Windows 8.1. Background, one programmer asked me to delete a folder on one of the servers, it’s a trifling matter, I go in to delete it writes Error Request permission from Administrators when deleting a folder, I previously told me to deal with this, but in this case the folder was not deleted and I didn’t become the owner of the subdirectory smog. Below we will see how to achieve this.



How to create bootable USB drive(Disc) with Windows 8.1 using Media Creation Tool-01

Hello everyone today I will tell you how to create a bootable USB flash drive (Disk) with Windows 8.1 using the Media Creation Tool. It is convenient for any administrator to download an image with all the integrated updates than to install a hundred on their own. Moreover, download the image from the Microsoft website, and not a self-made assembly from torrents. I myself make images for myself, too, clean on the basis of the original ones (every two months, you can download it here), and many are happy with my assemblies, but there are conservatives and just people who do not know me, this utility and method will work for them.

pyatilistnik.org

Inforkomp.com.ua> Errors> Fix "Errors 5: Access Denied" when starting services

Hello friends! The other day, once again, I came across an error when starting some system services. Why do I say that again? The fact is that this is not my first meeting with her, but somehow I could not get to the description of the ways by which I successfully coped with error 5.

So we come across several possible solutions that can help you in case of problems with starting services, namely "Errors 5. Access denied". In general, first I will describe the very essence of the error that I am talking about, so that you can determine the same problem you have or something completely different.

So, by opening the service menu and selecting the item I need, I get into their properties, where in the item about the method for starting the service, I set the value "Automatic", and also click on the "Start" button to start it immediately. But alas, instead of a successful start, a small window is displayed on the screen, with a rather strange message that the service could not be started due to "Error 5. Access denied".

This message surprised me that it said that there was a lack of rights, although I was working at the computer, logged in using the system administrator account, and as you know, there are all possible rights to change the properties and settings of the operating system.

How do I resolve the Error 5 issue?

There are a lot of solutions to this kind of problem, namely, fixing the causes of the "error 5. Access denied" when starting the services, it all depends on the situation the user is faced with. Further, I, as usual, will not describe a one hundred percent method that will help everyone, since there is none, but I will write about how I got out of this situation with a positive result.

I found some examples of how to fix error 5 on the Internet, but I got to others myself. In general, let's see what in my practice helped to get rid of problems with starting services, but you will try to do the same for yourself, perhaps one of the options I have proposed will suit you.

"Error 5. Access denied" when starting system services, solutions

1. Opening full access to the "C" drive. I do not know why this is so, but I came across computers where the security of the system disk was set exclusively for reading and nothing else, and this parameter was set for all accounts. But, as soon as I returned all the security checkboxes, error 5 disappeared forever, and the service started its work without any problems.

To return the rights, you need to go to the properties window of the system drive "C" and go to the "Security" tab. Having missed the list of users and groups, we go down to the buttons "Change" - "Add".

In the appeared area, with our hands on the keyboard we type the word "All", which means that we will set the same access rights for absolutely all users of the system.

If everything is so, then you made no mistakes in the previous step, click on "OK".

For those who are still Windows XP users, you should pay attention to the fact that by default you may not see the "Security" tab. In order to return it to its place, follow a few simple steps.

  1. Open any folder;
  2. At the top, click on "Service";
  3. "Folder properties";
  4. "View";
  5. In the list of additional parameters, uncheck the use of simplified shared access.

After that, we perform the above actions and, of course, check whether you managed to cope with error 5 using this method or not.

2. Also, there is another way that I got on the Microsoft support pages. After seeing this advice in the comments, I decided to try it and the problem with error 5 when starting the service was solved.

The first step is to open the command line as an administrator, but if you are on this account, then you can stop worrying and just open cmd with Run.

Now, in the window that appears, write this: net localgroup Administrator / add networkservice (Important: if you have an English OS, then instead of Admin. Specify Administrator) and press the "Enter" key.

Then we do this: net localgroup Administrators / add localservice. (Administrators)

When finished with the commands, close the command prompt window and restart the computer.

If the commands were entered correctly and you are in luck, then error 5 that prevents the services from starting should disappear, and the services themselves will start without any access denied messages.

3. We are trying to fix the access denied error when starting services using the operating system registry.

But, before we rush to crumble our registry, we need to first find out the name of the service that does not want to start. To do this, in the list of services, open the properties of the service we need and look at the line "Service name". Having memorized it, we go directly to work with the registry.

Registry Editor - launch it using the "Run" window. If you do not understand what it is about, then you are here.

You should be presented with a large list of services in alphabetical order. In order to understand what kind of service we need, I said to look at its name in the properties. So we are looking for a section with the appropriate name, right-click to bring up the section menu and select the "Permissions" line.

The same security setting should be displayed as I described in the first paragraph. In general, we are looking for full access in the "Administrators" and "Users" groups.

If they are absent there at all, then we correct this matter, in the same way as I showed it at the beginning of the article.

4. Consider one more point, which is also associated with access to the C drive, only this time not for all users, namely LOCAL SERVICE.

So, again we go into the security properties of the system disk. Further, after the list of users and groups, click on the "Add" button.

In the window that appears, click on "Search". As a result, a list should appear from which we need to select "LOCAL SERVICE" and click on the "OK" buttons.

This group should be added to the user's list, now for going down a little lower to the "Permissions for LOCAL" window, set all possible checkboxes and apply the changes.

In theory, the service should start after that, but error 5, disappear without a trace.

5. Alternatively, you can also disable or remove your antivirus and try to start the service without it. The fact is that in addition to software, some antivirus programs additionally install their services that could take away your rights to enable or disable some local services.

6. Well, and one hundred percent option, of course, is a complete reinstallation of the system, I know that it will not suit everyone, but I can tell you with confidence that it will definitely help you get rid of error 5 with denial of access to start the service, and in addition will save the computer from various other glitches and problems 🙂

On this I will probably end my article, but if at least one of the above options helps you, then do not forget to join us in a group in VK, in order to receive our valuable advice on the prevention and repair of PCs in time.

If when you try to change, open or delete a folder or file in Windows, you receive messages that you are denied access, "No access to the folder", "Request permission to change this folder" and similar, then you should change the owner of the folder or file, which is what we'll talk about.

There are several ways to take ownership of a folder or file, the main ones being using the command line and additional OS security settings. There are also third-party programs that allow you to change the owner of a folder in two clicks, we will also look at one of the representatives of which. Everything described below is suitable for Windows 7, 8 and 8.1, as well as Windows 10.

Notes: in order to become the owner of an item using the methods below, you must have administrator rights on the computer. In addition, you should not change the owner for the entire system drive - this may lead to unstable Windows operation.

Additional information: if you want to take ownership of a folder in order to delete it, otherwise it will not be deleted, and writes Request permission from TrustedInstaller or Administrators, use following instruction(there is also a video):.

Using the takeown command to take ownership of an object

To change the owner of a folder or file using the command line, there are two commands, the first is takeown.

To use it, run the command line as Administrator (in Windows 8 and Windows 10 this can be done from the menu invoked by right-clicking on the Start button, in Windows 7 by right-clicking on the command line in standard programs).

At the command line, depending on which object you want to own, enter one of the commands:

  • takeown /F "full path to file"- take ownership of the specified file. To make all administrators of the computer the owner, use the setting / A after the file path in the command.
  • takeown / F “path to folder or drive” / R / D Y- become the owner of a folder or disk. The path to the disk is indicated as D: (without a slash), the path to the folder is C: \ Folder (also without a slash).

When you run these commands, you will receive a message stating that you have successfully become the owner of a specific file, or individual files in the folder you specified or on disk (see screenshot).

How to change the owner of a folder or file using the icacls command

Another command that allows you to access a folder or files (change their owner) is icacls, which should be used in the same way in a command line running as administrator.


To set the owner, use the command in the following form (example in the screenshot):

Icacls "path to file or folder" /setowner "Username" /T /C

The paths are indicated in the same way as in the previous method. If you want to make all administrators the owner, then instead of the username, use Administrators(or, if it doesn't work, Administrators).

Additional information: in addition to taking ownership of the folder or file, you may need to also obtain permissions to modify, for this you can use the following command (gives full user rights for the folder and nested objects): ICACLS "% 1" / grant: r "username" :( OI) (CI) F

Gaining Access Using Security Settings

The next way is to use only the mouse and the Windows interface, without going to the command line.

At this point, you became the owner of the specified Windows object and the messages that there is no access to the folder or file should no longer bother you.

Other ways to take ownership of folders and files

There are other ways to solve the "access denied" problem and quickly become an owner, for example, using third-party programs that embed the "Take ownership" item into context menu conductor. One such program is TakeOwnershipPro, which is free and, as far as I can tell, without anything potentially unwanted. A similar item can be added to the context menu by editing the Windows registry.


However, given the fact that such a task occurs relatively rarely, I do not recommend installing third-party software or making changes to the system: in my opinion, it is better to change the owner of an item in one of the "manual" ways.

Since the introduction of User Account Control (UAC) in Windows Vista, Microsoft has strengthened the security of the system and system files by strengthening its file access control system. Now, to rename or move a file or folder on the system drive, you need the appropriate permission.

In Windows 8, the file access control order has been changed. In Windows 7, it was the same as in previous versions of the system. But now the differences are not so noticeable, only the way of changing the owner has changed slightly, the teams have remained the same. For example, Windows 7 has an Owner tab:

You had to click Change, select a user and confirm the changes.

In Windows 8, the Owner tab has been removed and moved to the top of the preferences window.

On the Permissions tab, when adding a new object, there are two options for displaying permissions - primary and secondary. The screenshot below is a list of additional permissions.

How to change the owner of a folder and files in Windows 8?

There are several steps to follow.

1. Select desired file or folder, right-click on it, go to properties and go to the Security tab.

2. To be able to manage permissions, you must set your account as the owner. Click on the Advanced button.

3. At the top of the window, next to the word Owner, click on Change and enter your account name.

We changed ownership to User User Win8. Select the Replace owner of subcontainers and objects checkbox and click Apply. You will be prompted to close and reopen the object to make changes.

4. The owner is now changed. To inherit permissions, you must click on Enable inheritance.

You can also replace all permissions of the child object with inherited from the current one by checking the corresponding checkbox.

Hello friends! The other day, once again, I came across an error when starting some system services. Why do I say that again? The fact is that I have already met her not for the first time, but somehow I could not get to the description of the ways by which I successfully coped with error 5.

So we come across several possible solutions that can help you in case of problems with starting services, namely " Errors 5. Access Denied". In general, first I will describe the very essence of the error that I am talking about, so that you can determine the same problem you have or something completely different.

So, by opening the service menu and selecting the item I need, I get into their properties, where in the item about the method for starting the service, I set the value "Automatic", and also click on the "Start" button to start it immediately. But alas, instead of a successful start, a small window is displayed on the screen, with a rather strange message that the service could not be started due to "Error 5. Access denied".

This message surprised me that it said that there was a lack of rights, although I was working at the computer, logged in using the system administrator account, and as you know, there are all possible rights to change the properties and settings of the operating system.

How do I resolve the Error 5 issue?

There are a lot of solutions to this kind of problem, namely, fixing the causes of the "error 5. Access denied" when starting the services, it all depends on the situation the user is faced with. Further, I, as usual, will not describe a one hundred percent method that will help everyone, since there is none, but I will write about how I got out of this situation with a positive result.

I found some examples of how to fix error 5 on the Internet, but I got to others myself. In general, let's see what in my practice helped to get rid of problems with starting services, but you will try to do the same for yourself, perhaps one of the options I have proposed will suit you.

"Error 5. Access denied" when starting system services, solutions

1. Opening full access to the "C" drive. I do not know why this is so, but I have come across computers where the security of the system disk was set exclusively for reading and nothing else, and this parameter was set for all accounts. But, as soon as I returned all the security checkboxes, error 5 disappeared forever, and the service started its work without any problems.

To return the rights, you need to go to the properties window of the system drive "C" and go to the tab " Security". Having missed the list of users and groups, we go down to the buttons "Change" - "Add".

In the appeared area, with our hands on the keyboard we type the word “ Everything”, Which means that we will set the same access rights for absolutely all users of the system.


If everything is so, then you made no mistakes in the previous step, click on "OK".

For those who are still Windows XP users, you should pay attention to the fact that by default you may not see the "Security" tab. In order to return it to its place, follow a few simple steps.

  1. Open any folder;
  2. At the top, click on "Service";
  3. "Folder properties";
  4. "View";
  5. In the list of additional parameters, uncheck the use of simplified shared access.

After that, we perform the above actions and, of course, check whether you managed to cope with error 5 using this method or not.

2. Also, there is another way that I got on the Microsoft support pages. After seeing this advice in the comments, I decided to try it and the problem with error 5 when starting the service was solved.

The first step is to open the command line as an administrator, but if you are on this account, then you can stop worrying and just open cmd with Run.


Now, in the window that appears, we register this: net localgroup Administrator / add networkservice (Important: if you have English. OS then instead of Admin. specify Administrator) and press the "Enter" key.

Then we do this: net localgroup Administrators / add localservice . (Administrators)


When finished with the commands, close the command prompt window and restart the computer.

If the commands were entered correctly and you are in luck, then error 5 that prevents the services from starting should disappear, and the services themselves will start without any access denied messages.

3. We are trying to fix the access denied error when starting services using the operating system registry.

But, before we rush to crumble our registry, we need to first find out the name of the service that does not want to start. To do this, in the list of services, open the properties of the service we need and look at the line “ Service name". Having memorized it, we go directly to work with the registry.

Registry Editor - launch it using the "Run" window. If you do not understand what it is about, then you.

You should be presented with a large list of services in alphabetical order. In order to understand what kind of service we need, I said to look at its name in the properties. So we are looking for a section with the appropriate name, right-click to bring up the section menu and select the line “ Permissions».


The same security setting should be displayed as I described in the first paragraph. In general, we are looking for full access in the "Administrators" and "Users" groups.


If they are absent there at all, then we correct this matter, in the same way as I showed it at the beginning of the article.

4. Consider one more point, which is also related to access to the C drive, only this time not for all users, namely LOCAL SERVICE.

So, again we go into the security properties of the system disk. Further, after the list of users and groups, click on the "Add" button.


In the window that appears, click on "Search". As a result, a list should appear from which we need to select "" and click on the "OK" buttons.


This group should be added to the user's list, now for going down a little lower to the "Permissions for LOCAL" window, set all possible checkboxes and apply the changes.

In theory, the service should start after that, but error 5, disappear without a trace.

5. Alternatively, you can also disable or remove your antivirus and try to start the service without it. The fact is that in addition to software, some antivirus programs additionally install their services that could take away your rights to enable or disable some local services.

6. Well, a hundred percent option, of course, is, I know that it will not suit everyone, but I can tell you with confidence that it will definitely help you get rid of error 5 with denial of access to start the service, and, in addition, it will save the computer from other various glitches and problems 🙂

On this I will probably finish my article, but if at least one of the above options helps you, then do not forget to join us

Method 2... Using command line utilities takeown and icacls

Note. This method can only be used to gain access to files or folders, but not to registry keys.

Using the takeown command-line utility to change the owner of objects

  1. Open command prompt (cmd)
    Note... Running as an administrator in this case is required regardless of the rights of the account in which you are working at the moment. The only exception can be when you work in the built-in Administrator account, which is disabled by default.
  2. Run takeown / f "" to make the current user the owner of the file. Example:
    takeown / f "C: \ Windows \ System32 \ imageres.dll"
  3. To make the current user the owner of the folder and all its contents, run the takeown / f "" / r / d y command. Example:
    takeown / f "C: \ System Volume Information" / r / d y
    • / f- pattern for file or folder name, supports wildcards, for example takeown / f% windir% \ *. txt
    • / r- recursion: all files and subdirectories in the specified folder are processed
    • / d- used in conjunction with / r to suppress the request to gain access to each file or subdirectory
    • y- used in conjunction with / d to confirm the change of owner of each file or subdirectory
  4. To assign a group Administrators the owner of the file or folder uses the same commands, but with the parameter / a... Examples:
    takeown / f "C: \ Windows \ System32 \ imageres.dll" / a
    takeown / f "C: \ System Volume Information" / a / r / d y

    takeown /?

Using the icacls command line utility to change object permissions

  1. The icacls / grant: F / c / l command is used to change the file permissions. Example:
    icacls "C: \ Windows \ System32 \ imageres.dll" / grant administrators: F / c / l
    • / grant
    In the example, the Administrators group is granted Full Control permissions.
  2. To change folder permissions use icacls / grant: F / t / c / l / q command. Example:
    icacls "C: \ System Volume Information" / grant administrators: F / t / c / l / q
    Parameters used in the command:
    • / grant- provision of the specified permissions
    • : F- granting full access to the specified account or group
    • / t- all files and subdirectories in the specified folder are processed
    • / c- continuation of processing in case of file errors, errors are displayed on the screen
    • / l- used to process symbolic links, with this parameter the link itself is processed, not its target object
    • / q- all messages about successful processing are suppressed, error messages will be displayed on the screen

    You can get the full syntax of the takeown command line utility with the command takeown /?

How to install the TrustedInstaller service as the owner of files and folders

The owner of many system files and folders is the TrustedInstaller service. If the owner of such files or folders is changed, the system will become unstable and many system maintenance tasks will stop working.

If you changed the owner of the system folder to delete or write files, or a file to replace or edit it, after performing the necessary actions, you need to assign the default owner, that is, TrustedInstaller.

Using the Windows GUI

Using the icacls command line utility

  1. To change the owner of a file or folder to TrustedInstaller, open a command prompt (cmd)
  2. Run the following command:
    icacls "C: \ System Volume Information" / setowner "NT Service \ TrustedInstaller" / t / c
    As a result of its execution, the owner of the C: \ System Volume Information folder will install TrustedInstaller.

Adding a command to change the owner of an object to the explorer context menu

To simplify the procedure for changing the owner, you can add the corresponding item to the explorer context menu.
The proposed option also uses command line utilities takeown and icacls with certain parameters, and the resulting command will set the current user as the owner of the object on which it will be applied.

You can download ready-made registry files for importing from this link:

Archive content:

  1. Add_Take_Ownership_ RU Russian Windows versions
  2. Add_Take_Ownership_ RU english Windows versions
  3. Add_Take_Ownership_ with_Pause_RU.reg - for adding a change owner menu item, when used, the command execution window does not automatically close after processing. The processing result is displayed in the command execution window. The file is used to add a menu item to Russian Windows version.
  4. Add_Take_Ownership_ with_Pause_EN.reg - to add a change owner menu item to english Windows version. The command execution window does not close automatically, as well as for file # 3.
  5. Remove_Take_Ownership.reg - to remove the change owner menu item regardless of the system language and the file used to add it.

Note. If you previously added another context menu item using the same method (entry in the registry key HKEY_CLASSES_ROOT \ * \ shell \ runas) then it will be replaced.

Description of the registry files contained in the archive:

Adding the command to change the owner of objects to TrustedInstaller to the explorer context menu

To change the owner of files and folders to TrustedInstaller, you can also add an explorer context menu.
The proposed version uses the command line utility icacls.

Ready registry files for adding and removing this menu item:

Please note that the same registry keys and parameters are used to implement any context menu item (for assigning the current user to the owner and for adding an item for changing the owner to TrustedInstaller). In this regard, the addition of both items at the same time, in the considered option, is impossible.
In the next chapter of the article, we will consider options for the simultaneous coexistence of these two context menu items.

Adding a cascading menu with items for changing the owner for the current user and for the TrustedInstaller

In the previous examples, we used the runas registry subkey, the commands from which are launched by default with an elevation request, that is, in fact, they are run as administrator. Adding a cascading menu with multiple items does not provide this benefit, but running commands as administrator is required to execute them.

There are several ways to solve this problem, but using third party utility to run the command with elevated privileges is still the fastest and easiest in this case.

There are several such utilities, each of them has its own advantages, but most of them are projects of enthusiasts and have not been supported or refined for quite some time.

  1. Download NirCmd x86(for 32-bit systems) or NirCmd x64(for 64-bit systems)
  2. Copy the file nircmd.exe from the archive to the Windows folder
    You can choose not to do this, but in this case, you will have to modify the proposed registry files and specify the full path to nircmd.exe
  3. Download the archive and extract the reg files from it into a separate folder
  4. Run the file Add_Take_Ownership_Restore_Owner.reg to add a menu

To remove this menu use the file Remove_Take_Ownership_Restore_Owner.reg

It may happen that after reinstall Windows or for some other reason, the system will refuse you access to some folders or files on local drives, especially if there is a previous version of Windows on one of these disks.

But what if, say, you have important files on your old desktop or in the downloads folder, or in the documents folder, or in some other special place? This article addresses this issue and presents two ways to return access to such folders or files. For example, the suggested solutions were performed on Windows 10, but the following is true for Windows 8 and Windows 7.

The first way

Right-click the restricted folder and select Properties from the context menu. In the opened folder properties dialog box, switch to the "Security" tab, then in the "Groups and users" list, find the item with the name of the account under which you are logged in and click on it with the mouse. In the bottom field you can see the folder permissions.

You may also not see your account listed as shown in the picture above. In any case, click on the "Change" button to change the access rights of your account to the folder. If your account is listed in the upper field, skip this paragraph and read on, otherwise click on the "Add ..." button.

In the dialog that appears, type in the bottom field the name of your account, click on the "Check Names" button.

Select the item with the name of your account in the upper field, and in the lower one, put a checkmark in front of the item "Full access", then click the "Apply" button.

If, while applying the parameters, you see the message:

Error applying security settings to ... Failed to enumerate objects in container. Access denied.

or message:

Then close all dialog boxes and try the second method.

Second way

Right-click the restricted folder and select Properties from the context menu. In the folder properties dialog box that opens, switch to the "Security" tab, then click on the "Advanced" button.

In a new window in the owner line, click on the "Change" link, if you need to enter the password for your account, enter the password and confirm the action.

A dialog box for finding and adding an account will open, the same as in the first method described above. Type your account name in the very bottom field and click on the "Check Names" button.

The system will find and format your account name. Click on the "OK" button to add the found account.

The dialog box will close and in the previous window, in the "Owner" line you should see your account name. Be sure to check the Replace owner of subcontainers and objects checkbox under it to access all subfolders and files in the folder you are trying to access, then click the Apply button.

Agree with the warning that you want to replace the permissions for this folder so that you have full access rights by clicking on the "Yes" button.

In the next informational message, also click the "OK" button.

As a result, you should see in the owner change window only one item with the name of your account.

Click OK and close the main folder properties dialog box by clicking OK.

Everything! The folder should open as usual.