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

So we meet several possible solutions that can help you if you find problems with starting services, namely “ Errors 5. Access Denied". In general, I will first 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 services menu and selecting the item I need, I get into their properties, where in the item about how to start the service, I set the value to “Automatically”, 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 because it said about the lack of rights, although I worked at the computer, logging 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 to solve the problem with Error 5?

There are quite a few solutions to this kind of problem, namely, fixing the causes of the “error 5. Access denied” when starting services, it all depends on the situation the user is facing. Further, as usual, I will not describe 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 fixing error 5 on the net, 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 if you try to do the same for yourself, maybe one of the options I suggested will suit you.

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

1. Opening full access to the "C" drive. I don’t know why, but I came across computers where the system disk security was set to read-only 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, but the service started its work without any problems.

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

In the area that appears, use your hands on the keyboard to 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 in the previous step you did not make mistakes, 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. Click on "Service" at the top.
  3. "Folder properties";
  4. "View";
  5. In the list of additional options, uncheck the use of simplified sharing.

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

2. Also, there is another way that I got on the Microsoft support pages. Seeing this tip 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 a command prompt as an administrator, but if you are on this account, then you can not worry and just open cmd with "Run".

Now in the window that appears, write 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 were lucky, then error 5 preventing the services from starting should disappear, and the services themselves will start without any access denied messages.

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

But, before we rush to chop up our registry, we first need to 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 remembered it, we proceed directly to working with the registry.

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

You should see 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 call up the section menu and select the line " Permissions».

The same security setting as I described in the first paragraph should be displayed. In general, we look to ensure that full access is set in the "Administrators" and "Users" groups.


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

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

So, again we go into the security properties of the system disk. Next, 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 antivirus programs, in addition to software, install additional services of their own that could take away your rights to enable or disable some local services.

6. Well, of course, the one hundred percent option is, I know that it will not work for everyone, but I can tell you with confidence that it will definitely help get rid of error 5 with denial of access to start the service, well, and additionally save the computer from various other 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

I think that most users have encountered such a problem as freezing services in Windows, moreover, an attempt to forcefully terminate such a service has not been successful, and it hangs in the mode Stopping. From the graphical interface, restarting or forcibly terminating the service also fails, and restarting the server itself, in our case, the computer, may not always be valid.

Now we will look at a method that will help you force quit a process that is frozen, while the device itself does not need to be restarted.

How to force quit a hung service?

So, as soon as 30 seconds pass and it is clear that the service has not stopped, Windows will display the following message:

You can quickly and effortlessly shut down a hung process using the utility. Before that, you will need to define PID process (service). As an example, we will use the service, the system process name is wuauserver.

Attention! If you end an important process, then it can lead to a system reboot or BSOD (screen of death).

Now we open the command line with admin rights, if this is not done, then an error may occur. Enter the following into the command line:


A message will appear that the Windows Update service has ended. You can then return to the service management and start the process there again, or delete it altogether if you do not use it.

There is another method for forcefully terminating a process without having to find out the PID. In this case, the already familiar utility will help us. Let's run it as an administrator.

The following command will help us identify services that are in the stopping state:

Get-WmiObject -Class win32_service | Where-Object ($_.state -eq 'stop pending')


Now we need to complete the process for the services we found, this will help us. With the help of the following script, all services hanging in the system will be terminated:

$Services = Get-WmiObject -Class win32_service -Filter "state = 'stop pending""
if ($Services) (
foreach($service in $Services)(
try(
Stop-Process -Id $service.processid -Force -PassThru -ErrorAction Stop
}
catch(
Write-Warning -Message » Error. Error details: $_.Exception.Message"
}
}
}
else(
Write-Output "No services with 'Stopping'.status"
}


That's all, today we were able to complete the processes that we could not complete, for example, using the device manager or from the graphical shell.

If any Windows service fails, you must either restart the service or reboot the system. Restarting your computer is inconvenient as it takes time and closes all windows. If you cannot stop the service through the Control Panel, you can restart the Windows service from the command line.

There are 4 ways to open the Windows Services settings:

  1. Click Win+R, in the window Run enter services.msc and press Enter. The Service Manager opens.
  2. Click Start, in the search enter Services, open settings.
  3. Open Control Panel -> System and Security -> Administrative Tools -> Services.
  4. Right click on the button Start or keys Win+X. Go to "Computer Management -> Services and Applications -> Services.

Fortunately, from version to version of Windows, this section of settings has not changed much. On Windows 7, Vista, 8, and 10, Services will look pretty much the same.

Restart via Control Panel

The possibilities of standard settings in the Control Panel are enough to stop and start system services. There is a possibility - it will slightly increase the performance of the device.

Stopping and restarting Windows services:

  1. Open a window in any way Services, find the right one.
  2. Right-click on the desired service and select Restart.
  3. If the button Restart inactive - click Properties.
  4. Click Stop, wait for the service to stop.
  5. Click on the button Run.

If the service is hung or has not stopped, open Task Manager (Ctrl+Alt+Del) and end all processes associated with the problematic service.

Restart via command line

If the Control Panel does not cope with its duties, you can disable or restart the service through the Command Prompt (cmd.exe). Command Prompt must be run as an administrator.

To manage services, there are 4 commands that duplicate the functionality of the Control Panel:

  • net stop service— Stop the selected service.
  • net start service- Run.
  • net pause service- Suspend service.
  • net continue service- Resume service.

To work with a service, you need to know its name. For example, launch services Windows Audio will be executed on command net start audiosrv. Where audiosrv is the system service name.

To find out, you need to go to the properties. The required line will be at the very top - "Service Name". You can list the names of all active services directly at the Command Prompt by typing sc query type= service.

Through the console, you can not only restart the service, but also change its startup type with the command scconfig *SERVICE* start=*START_TYPE*.

Available launch types:

  • auto— Automatically.
  • demand- Manually (on request).
  • delayed-auto- Delayed start.

For example, the command sc config audiosrv start=auto will transfer the service Windows Audio to startup type Automatically.

For completeness, one more way to restart should be mentioned - through the Task Manager. To do this, press the key combination Ctrl+Alt+Del(or Ctrl-Shift-Esc), select Task Manager and go to the tab Services. By pressing the right mouse button on any service, a context menu appears, from where you can stop, start, and restart.

System administrators usually have to deal with the need to force shutdown of services, but it may well turn out that during some kind of configuration you will need to perform such an operation - ordinary user. You open the service management console, find the service that needs to be stopped or restarted, click the corresponding link in the left panel, but instead of safely stopping or restarting the service hangs in the status "Stop".

And he doesn't react to anything. And later 30 seconds you get the following message:

Failed to stop NAMESERVIS Windows service on local computer.
Error 1053. The service did not respond to the request in a timely manner.

The first thing that comes to mind is to reboot the computer. This usually helps, but it may well turn out that a second attempt to stop the service will fail and lead to it hanging up again, or restarting is impossible for some reason. In this case, there is nothing left but to complete its work in forced mode.

For starters, you can try using the most common task manager. Open the dispatcher, find the unresponsive service, right-click on it and select the option from the context menu.

This action will redirect you to the service process, which you can then terminate in forced mode .

You can also shut down the service through the command line launched as administrator using the standard utility taskkill. The command looks like this:

taskkill /PID Service # /F

peep PID you can in the task manager tab "Services" or by running the command sc queryex name , where name- systemic (Latin) service name.

The result of the command taskkill With PID and parameter F should be a message "Process, with id completed successfully" .