Sppsvc ошибка 5 отказано в доступе

If you are running Microsoft Office but receiving an error message that says Microsoft Office cannot retain or find your license key and hence it is closing automatically, you will see another error message – Windows could not start the Software Protection service on Local Computer, Error 5, Access is Denied. This error message appears after opening the Services window on your computer.

Windows could not start the Software Protection service on Local Computer

Microsoft Office can’t find your license for this application

Let’s assume that you want to work on Microsoft Word or Excel – but when you open it you see an error message:

Microsoft Office can’t find your license for this application. A repair attempt was unsuccessful or was cancelled. Microsoft Office will exit now.

Microsoft Office can’t find your license for this application

Windows searches for various Services to run a particular program. For example, if you open Microsoft Word, it will search for a valid license key. If the concerned service is not running correctly, you could get the error message mentioned.

If you receive – Microsoft Office can’t find your license for this application, A repair attempt was unsuccessful or was canceled. Microsoft Office will exit now error followed by Windows could not start the Software Protection service on Local Computer, Error 5, Access is Denied, then these suggestions may help you.

As this problem occurs when you try to open the Software Protection service in the Services panel, you should do the following to fix this issue.

  1. Take ownership of sppsvc.exe
  2. Take ownership of the Registry key
  3. Run DISM.

Before you begin, you should create a system restore point first, and know that taking ownership of system elements may make your OS “less secure”.

1] Take ownership of sppsvc.exe file

Sppsvc.exe is Microsoft Software Protection Platform Service and it is a file that is responsible for this error. By default, this is a TrustedInstaller protected file, and you need to take ownership of this file. For that, open Windows Explorer and navigate to this path:

C:WindowsSystem32

Here, C is the system drive. In the System32 folder, you should find the sppsvc.exe application file.

2] Take ownership of the Registry key

You need to take ownership of registry key. To do that, open Registry Editor. For that, press Win + R, type regedit and hit the Enter button. Following that, navigate to this path:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform

Now, right-click on the SoftwareProtectionPlatform and select Permissions.

From the Group or user names list, select sppsvc. Now, make a tick in the Full Control and Read [Allow] checkboxes.

Click the Apple and OK button respectively to save your change.

Now, check whether your problem has been resolved or not.

3] Run DISM

DISM or Deployment Image Servicing and Management could help you fix the issue when nothing else could. If other two solutions do not help, run DISM and see if that finally works for you.

How do I fix Software Protection service?

To fix the Software Protection Service problem on your Windows 11/10 computer, you need to take ownership of Sppsvc.exe and the corresponding Registry key. Both of the tricks are mentioned in this article, and you can follow them to fix any issue related to this service.

How do you take ownership of Sppsvc?

As mentioned in the article, Sppsvc.exe is a TrustedInstaller protected file, and you need to take full ownership to fix any issue. For that, you can follow this tutorial to learn how to take full ownership of files and folders in Windows 11/10.

How do I enable Sppsvc?

To enable the Software Protection service or Sppsvc in Windows 11/10, you need to open the Services panel first. Then, double-click on the Software Protection service and click the Start button. At last, click the OK button to save the change. Alternatively, you can use the Command Prompt or Windows PowerShell to do the same.

Is Software Protection service needed?

Yes, the Software Protection service is needed in Windows 11/10 and all the other older versions. It helps you continue using various paid software with the license key intact. In other words, you may lose the Windows and Office activation by disabling the Software Protection service on your computer.

All the best.

Оглавление:

  • Microsoft Office не может найти вашу лицензию для этого приложения
  • Windows не могла запустить службу защиты программного обеспечения на локальном компьютере

Windows не удалось запустить службу защиты программного обеспечения

Windows не удалось запустить службу защиты программного обеспечения

Если вы используете Microsoft Office, но получаете сообщение об ошибке, в котором говорится, что Microsoft Office не может сохранить или найти ваш лицензионный ключ и, следовательно, он автоматически закрывается, вы увидите другое сообщение об ошибке — Windows не удалось запустить службу защиты программного обеспечения на локальном компьютере, ошибка 5, отказ в доступе, Это сообщение об ошибке появляется после открытия окна «Службы» на вашем компьютере.

Image

Image

Microsoft Office не может найти вашу лицензию для этого приложения

Предположим, что вы работаете в Microsoft Word или Excel, но в нем отображается сообщение об ошибке:

Microsoft Office can’t find your license for this application. A repair attempt was unsuccessful or was cancelled. Microsoft Office will exit now.

Windows часто ищет различные Службы для запуска определенной программы. Например, если вы откроете Microsoft Word, он будет искать действительный лицензионный ключ. Если соответствующая служба работает некорректно, вы получите сообщение об ошибке, подобное упомянутому.

Windows часто ищет различные Службы для запуска определенной программы. Например, если вы откроете Microsoft Word, он будет искать действительный лицензионный ключ. Если соответствующая служба работает некорректно, вы получите сообщение об ошибке, подобное упомянутому.

Windows не могла запустить службу защиты программного обеспечения на локальном компьютере

Если вы получаете Microsoft Office, вы не можете найти свою лицензию для этого приложения. Попытка восстановления не увенчалась успехом или была отменена. Microsoft Office выйдет из строя, после чего Windows не сможет запустить службу защиты программного обеспечения на локальном компьютере, ошибка 5, «Отказано в доступе», см. Это исправление.

Поскольку эта проблема возникает, когда вы пытаетесь открыть Защита программного обеспечения службы на панели «Службы», вы должны сделать следующее, чтобы исправить эту проблему.

Прежде чем начать, сначала необходимо создать точку восстановления системы и знать, что принятие владение элементами системы может сделать вашу ОС немного «менее безопасной».

1] Соблюдайте файл sppsvc.exe

Sppsvc.exe является Служба поддержки Microsoft Software Protection Platform и это файл, который отвечает за эту ошибку. По умолчанию это защищенный файл TrustedInstaller, и вам нужно взять на себя ответственность за этот файл. Для этого откройте проводник Windows и перейдите к следующему пути:

C:WindowsSystem32

Здесь C — системный диск. В папке System32 вы должны найти файл приложения sppsvc.exe.

2] Соблюдайте ключ реестра

Вам необходимо взять на себя управление ключом реестра. Для этого откройте редактор реестра. Для этого нажмите клавишу Win + R, введите смерзаться и нажмите кнопку «Ввод». После этого перейдите по этому пути:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSoftwareProtectionPlatform

Теперь щелкните правой кнопкой мыши SoftwareProtectionPlatform и выберите права доступа.

Image

Image

От Имена групп или пользователей список, выберите sppsvc, Теперь сделайте галочку в Полный контроль а также Читать [Разрешить].

Image

Image

Нажмите яблоко а также Хорошо чтобы сохранить изменения.

Теперь проверьте, была ли ваша проблема решена или нет.

Популярная тема

Монитор обновлений программного обеспечения SUMO: проверьте наличие обновлений программного обеспечения

Монитор обновлений программного обеспечения SUMO: проверьте наличие обновлений программного обеспечения

Мониторинг обновлений программного обеспечения SUMO будет отслеживать ваше программное обеспечение для обновления и загрузки и установки. Читайте обзор и загружайте бесплатное ПО SUMo для Windows.

Windows не удалось запустить службу, ошибка доступа запрещена в Windows 10/8/7

Windows не удалось запустить службу, ошибка доступа запрещена в Windows 10/8/7

Если вы получаете сообщение об ошибке «Отказано в доступе с помощью локальных служб в Windows 10 / 8.1» при запуске локальных служб, это исправление реестра поможет вам.

Проверка обновлений программного обеспечения и обновления программного обеспечения для Windows 10/8/7 ПК

Проверка обновлений программного обеспечения и обновления программного обеспечения для Windows 10/8/7 ПК

Программное обеспечение и монитор обновлений, такие как OUTDATEfighter, SUMO, Patch My PC, FileHippo Update Checker, RadarSync PC Updater. Kaspersky Software Updateretc сканирует ваш компьютер и проверяет наличие обновлений программного обеспечения и предлагает их загрузить и установить.

Windows не удалось запустить службу Windows Audio

Windows не удалось запустить службу Windows Audio

Если вы не можете запустить аудиосервис в Windows 8, и вы получаете Windows, не удается запустить службу Windows Audio, конечная точка — это ошибка Duplicate, а затем см. Это исправление.

Справочник по программному обеспечению для программного обеспечения и программного обеспечения Microsoft Software Product License

Справочник по программному обеспечению для программного обеспечения и программного обеспечения Microsoft Software Product License

Справочное руководство по зависимостям от лицензий на программное обеспечение Microsoft Software Software предоставляет клиентам программы Microsoft Volume Licensing список программного обеспечения Microsoft

I’m getting this error when I try to start a windows service I’ve created in C#:

alt text

My Code so far:

private ServiceHost host = null;

public RightAccessHost()
{
    InitializeComponent();
}

protected override void OnStart(string[] args)
{
    host = new ServiceHost(typeof(RightAccessWcf));
    host.Open();
}

protected override void OnStop()
{
    if (host != null)
        host.Close();
    host = null;
}

Update #1

I solved the issue above by granting permissions to the account NETWORK SERVICE but now I have an another problem:

alt text

Update #2

Service cannot be started. System.InvalidOperationException: Service ‘RightAccessManagementWcf.RightAccessWcf’ has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
at System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreNonMexEndpoints(ServiceDescription description)
at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at RightAccessHosting.RightAccessHost.OnStart(String[] args) in C:Users….

M463's user avatar

M463

1,9733 gold badges22 silver badges39 bronze badges

asked Nov 24, 2010 at 13:00

TheBoubou's user avatar

TheBoubouTheBoubou

19.3k53 gold badges147 silver badges234 bronze badges

2

I realize this post is old, but there’s no marked solution and I just wanted to throw in how I resolved this.

The first Error 5: Access Denied error was resolved by giving permissions to the output directory to the NETWORK SERVICE account.

The second Started and then stopped error seems to be a generic message when something faulted the service. Check the Event Viewer (specifically the ‘Windows Logs > Application’) for the real error message.

In my case, it was a bad service configuration setting in app.config.

Mangesh's user avatar

Mangesh

5,3815 gold badges48 silver badges71 bronze badges

answered Mar 6, 2011 at 0:37

Justin Skiles's user avatar

Justin SkilesJustin Skiles

9,3436 gold badges50 silver badges61 bronze badges

6

Computer -> Manage -> Service -> [your service] properties.
Then the the tab with the account information. Play with those settings, like run the service with administrator account or so.

That did it for me.

EDIT:
What also can be the problem is that, most services are run as LOCAL SERVICE or LOCAL SYSTEM accounts. Now when you run C:/my-admin-dir/service.exe with those accounts but they are not allowed to execute anything in that directory, you will get error 5. So locate the executable of the service, RMB the directory -> Properties -> Security and make sure that the account the service is run with, is in the list of users that are alloewd to have full control over the directory.

answered Aug 1, 2012 at 6:04

Mike de Klerk's user avatar

Mike de KlerkMike de Klerk

11.8k8 gold badges51 silver badges76 bronze badges

This worked for me.

  1. Right-click on top-level folder containing the service executable. Go to Properties
  2. Go to «Security» Tab
  3. Click «EDIT»
  4. Click «ADD»
  5. Enter the name «SYSTEM», click OK
  6. Highlight SYSTEM user, and click ALLOW check-box next to «Full control»
  7. Click OK twice

answered Jun 12, 2013 at 1:39

cmcginty's user avatar

3

Make sure the Path to executable points to an actual executable (Right click service -> Properties -> General tab).
Via powershell (and sc.exe) you can install a service without pointing it to an actual executable… ahem.

answered Jan 7, 2016 at 13:05

Aage's user avatar

AageAage

5,8922 gold badges32 silver badges56 bronze badges

4

I also got the same error , It resolved by
Right click on Service > Properties >Log On > log on as : Local System Account.

answered Jun 4, 2014 at 8:10

Asmita Chavan's user avatar

3

I was getting this error because I misread the accepted answer from here: Create Windows service from executable.

sc.exe create <new_service_name> binPath= "<path_to_the_service_executable>"

For <path_to_service_executable>, I was using the path of the executable’s folder, e.g. C:Folder.

It needs to be the path of the executable, e.g. C:FolderExecutable.exe.

answered Sep 10, 2018 at 12:24

Jamie Butterworth's user avatar

2

I got the solution:

1. Go to local service window(where all services found)
2. Just right click on your service name: 
3. click on "properties" 
4. go to "log on" tab
5. select "local system account"
6. click "ok"

now you can try to start the service.

answered May 30, 2018 at 17:35

Nur Uddin's user avatar

Nur UddinNur Uddin

1,7901 gold badge28 silver badges38 bronze badges

1

In my case following was not checked.

enter image description here

answered Apr 21, 2017 at 21:12

Akshay Anand's user avatar

2

if you are a having an access denied error code 5. then probably in your code your service is trying to interact with some files in the system like writing to a log file

open the services properties select log on tab and check option to allow service to interact with the desktop,
click allow service to interact with desktop

answered Oct 27, 2017 at 23:01

kudzai zishumba's user avatar

kudzai zishumbakudzai zishumba

6342 gold badges7 silver badges12 bronze badges

For me — the folder from which the service was to run, and the files in it, were encrypted using the Windows «Encrypt» option. Removing that and — voila!

answered Nov 28, 2013 at 20:45

Nicholas Blumhardt's user avatar

1

This error happens when there is a error in your OnStart method. You cannot open a host directly in OnStart method because it will not actually open when it is called, but instead it will wait for the control. So you have to use a thread. This is my example.

public partial class Service1 : ServiceBase
{
    ServiceHost host;
    Thread hostThread;
    public Service1()
    {
        InitializeComponent();
         hostThread= new Thread(new ThreadStart(StartHosting));

    }

    protected override void OnStart(string[] args)
    {
        hostThread.Start();
    }

    protected void StartHosting()
    {
        host = new ServiceHost(typeof(WCFAuth.Service.AuthService));
        host.Open();
    }

    protected override void OnStop()
    {
        if (host != null)
            host.Close();
    }
}

Frank Bryce's user avatar

Frank Bryce

8,0064 gold badges37 silver badges56 bronze badges

answered Oct 3, 2011 at 9:58

santhosh's user avatar

I had windows service hosted using OWIN and TopShelf.
I was not able to start it. Same error — «Access denied 5»

I ended up giving all the perms to my bin/Debug.

The issue was still not resolved.

So I had a look in the event logs and it turned out that the Microsoft.Owin.Host.HttpListener was not included in the class library containing the OWIN start up class.

So, please make sure you check the event log to identify the root cause before beginning to get into perms, etc.

answered May 27, 2016 at 4:00

Rashmi Pandit's user avatar

Rashmi PanditRashmi Pandit

23.1k17 gold badges71 silver badges111 bronze badges

2

In my case, I had to add ‘Authenticated Users’ in the list of ‘Group or User Names’ in the folder where the executable was installed.

answered Mar 8, 2018 at 7:27

Sankar's user avatar

One of the causes for this error is insufficient permissions (Authenticated Users) in your local folder.
To give permission for ‘Authenticated Users’
Open the security tab in properties of your folder, Edit and Add ‘Authenticated Users’ group and Apply changes.

Once this was done I was able to run services even through network service account (before this I was only able to run with Local system account).

answered Nov 2, 2018 at 13:30

Vijay kumar.S's user avatar

Right click on the service in service.msc and select property.

You will see a folder path under Path to executable like C:UsersMeDesktopprojectTorTortor.exe

Navigate to C:UsersMeDesktopprojectTor and right click on Tor.

Select property, security, edit and then add.
In the text field enter LOCAL SERVICE, click ok and then check the box FULL CONTROL

Click on add again then enter NETWORK SERVICE, click ok, check the box FULL CONTROL

Then click ok (at the bottom)

answered Nov 14, 2017 at 16:49

MagTun's user avatar

MagTunMagTun

5,5715 gold badges61 silver badges102 bronze badges

Your code may be running in the security context of a user that is not allowed to start a service.

Since you are using WCF, I am guessing that you are in the context of NETWORK SERVICE.

see: http://support.microsoft.com/kb/256299

answered Nov 24, 2010 at 13:04

Shiraz Bhaiji's user avatar

Shiraz BhaijiShiraz Bhaiji

63.7k33 gold badges143 silver badges249 bronze badges

2

I have monitored sppsvc.exe using process monitor and found out that it was trying to write to the HKEY_LOCAL_MACHINESYSTEMWPA key. After giving permissions to NETWORK SERVICE on this key, I was able to start the service and Windows suddenly recognized that it was activated again.

answered Apr 29, 2014 at 21:00

Guilherme Noronha's user avatar

Use LocalSystem Account instead of LocalService Account in Service Installer.

You can do this either from doing below change in design view of your service installer:

Properties of Service Process Installer -> Set Account to LocalSystem.

or by doing below change in in designer.cs file of your service installer:

this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;

Cubicle.Jockey's user avatar

answered Nov 9, 2016 at 11:03

Jay Shah's user avatar

Jay ShahJay Shah

3,5191 gold badge26 silver badges25 bronze badges

Have a look at Process Utilities > Process monitor from http://www.sysinternals.com.

This is tool that allows you monitor what a process does. If you monitor this service process, you should see an access denied somewhere, and on what resource the access denied is given.

answered Nov 24, 2010 at 13:13

Pieter van Ginkel's user avatar

Pieter van GinkelPieter van Ginkel

29.1k8 gold badges71 silver badges109 bronze badges

For the error 5, i did the opposite to the solution above.
«The first Error 5: Access Denied error was resolved by giving permissions to the output directory to the NETWORK SERVICE account.»

I changed mine to local account, instead of network service account, and because i was logged in as administrator it worked

answered Dec 19, 2012 at 13:09

Chris's user avatar

If you are getting this error on a server machine try give access to the folder you got the real windows service exe. You should go to the security tab and select the Local Service as user and should give full access. You should do the same for the exe too.

answered Mar 26, 2014 at 2:43

Darshana's user avatar

DarshanaDarshana

5641 gold badge4 silver badges12 bronze badges

I accidentally set my service to run as Local service solution was to switch to Local System

answered Sep 23, 2014 at 21:45

meda's user avatar

medameda

45k14 gold badges92 silver badges122 bronze badges

After banging my had against my desk for a few hours trying to figure this out, somehow my «Main» method got emptied of it’s code!

ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[] 
{ 
    new DMTestService()
};
ServiceBase.Run(ServicesToRun);

Other solutions I found:

  • Updating the .NET framework to 4.0
  • Making sure the service name inside the InitializeComponent() matches the installer service name property

    private void InitializeComponent()
    ...
    this.ServiceName = "DMTestService";
    
  • And a nice server restart doesn’t hurt

Szhlopp

answered May 5, 2015 at 23:53

Szhlopp's user avatar

In may case system run out of free space on local disk.

answered Jul 8, 2015 at 14:30

Alexander Puchkov's user avatar

I had this issue today on a service that I was developing, and none of the other suggestions on this question worked. In my case, I had a missing .dll dependency in the folder where the service ran from.

When I added the dependencies, the issue went away.

answered Jul 21, 2015 at 16:45

Frank Bryce's user avatar

Frank BryceFrank Bryce

8,0064 gold badges37 silver badges56 bronze badges

In my case I kept the project on desktop and to access the desktop we need to add permission to the folder so I simply moved my project folder to C: directory now its working like a charm.

answered Oct 8, 2016 at 5:17

smali's user avatar

smalismali

4,6576 gold badges38 silver badges59 bronze badges

I don’t know if my answer would make sense to many, but I too faced the same issue and the solution was outrageously simple. All I had to do was to open the program which I used to run the code as an administrator. (right-click —> Run as Administrator).

That was all.

answered Aug 29, 2018 at 12:43

Harshith Rai's user avatar

Harshith RaiHarshith Rai

3,0187 gold badges20 silver badges35 bronze badges

check windows event log for detailed error message. I resolved the same after checking event log.

answered Oct 30, 2019 at 10:24

Amrik Singh's user avatar

Amrik SinghAmrik Singh

4935 silver badges4 bronze badges

All other answers talk about permissions issues — which make sense, given that’s what the error message refers to.

However, in my case, it was caused by a simple exception in my service code (System.IndexOutOfRangeException, but it could be anything).

Hence, when this error occurs, one should look inside their log and look for exceptions.

answered Sep 13, 2021 at 10:45

OfirD's user avatar

OfirDOfirD

8,9134 gold badges45 silver badges88 bronze badges

I had this issue on a service that I was deploying, and none of the other suggestions on this question worked. In my case, it was because my .config (xml) wasn’t valid. I made a copy and paste error when copying from qualif to prod.

answered Sep 11, 2015 at 9:04

SabineA's user avatar

SabineASabineA

731 gold badge1 silver badge5 bronze badges

Устанавливая программу на Windows 10, пользователь может обнаружить сообщение об ошибке под кодовым номером 5. Это означает, что система отказалась предоставлять доступ без прав администратора, если в ней существует несколько созданных работающими на ПК людьми профилей.

Рассматриваемая неполадка становится следствием того, что у пользователя нет прав доступа к папкам, где располагаются файлы временного типа. А система неспособна осуществить запись, чтение и остальные манипуляции с хранящейся там информацией по причине запрета на них.

1 способ — запустить программу от имени администратора

Вернуть права суперпользователя разрешается, запустив приложение от имени администратора. Для этого необходимо:

  • Выбрать программу через файловый менеджер или стандартный проводник.
  • Нажать правой клавишей мыши для отображения контекстного списка команд.
  • Из имеющихся там пунктов выбрать строку «Запуск от имени администратора».

исправляем ошибку 5 на виндос 10

Если все операции выполнены правильно, программа запустится без появления ошибки с номером пять.

2 способ — открыть доступ к папкам

Чтобы все профили Windows 10 могли эксплуатировать хранящуюся в директории информацию, владелец компьютера должен:

  • Вызвать диалоговое окно утилиты «Выполнить» комбинацией кнопок Win+R.
  • В ее текстовом поле напечатать запрос %USERPROFILE°/oAppDataLocal.

команда выполнить виндовс

  • Отыскать каталог с названием temp и щелкнуть на ней ПКМ для открытия меню.

Отыскать каталог с названием temp и щелкнуть на ней ПКМ для открытия меню

  • По нажатию пункта «Свойства» открыть раздел с настройками безопасности.
  • Нажать кнопку «Добавить», имеющуюся под полем с группами и пользователями.
  • В блоке ввода имени в следующем окне напечатать «Все» и нажать «Проверить имена».
  • Если система не нашла запрошенное имя, в пункте «Введите имя объекта» написать All.
  • В утилите управления разрешениями выделить добавленную на предыдущем этапе группу.
  • В разделе с разрешениями для группы отметить все строки столбца «Разрешить» галками.

отметить все строки столбца «Разрешить» галками

  • Осуществить последовательное нажатие кнопок применения и подтверждения.

После перезагрузки персонального компьютера Windows сможет читать и записывать информацию из файлов на системном разделе жесткого диска. А ошибка с кодовым номером 5 перестанет появляться и портить комфорт работы на компьютере.

3 способ — запустить утилиту cmd.exe

Ошибка с номером 5 может генерироваться неправильной работой служб Windows. В подобных случаях необходимо:

  • Нажать кнопку «Пуск», чтобы в поисковом поле открывшегося меню набрать «Командная строка».
  • Щелкнуть на приложении cmd.exe ПКМ для того, чтобы система показала контекстное меню.
  • Из предлагающихся там пунктов выбрать команду запуска от имени администратора.

выбрать команду запуска от имени администратора

  • Напечатать в черном окне утилиты запрос net localgroup Администраторы /add networkservice.
  • По нажатию выполняющей ввод кнопки набрать net localgroup Администраторы /add localservice.
  • Перезагрузить персональный компьютер для вступления изменений в силу.

Внимание! Если на компьютере действует версия десятой Windows с англоязычным интерфейсом, вместо слова «Администраторы» в приведенных выше командах необходимо писать Administrators.

Post Views: 431

При запуске служб пользователи Windows часто видят такое сообщение.

Ошибка 5 говорит нам, что «отказано в доступе». То есть нам не хватает каких-то прав, чтобы запустить службу, хотя большинство пользователей работают в учетной записи администратора.

Проблема нередко возникает не только при подключении служб, но и открытии файлов, создании папок, запуске политики диагностики и т.д. В этой статье попробуем разобраться, в чем причина такой неисправности и по возможности устранить ее.

Содержание

  1. Полный доступ к системному диску
  2. Доступ для Local Service
  3. Командная строка
  4. Редактируем реестр
  5. Дополнительные рекомендации

Полный доступ к системному диску

Один из вариантов исправления ошибки – открыть полный доступ к системному диску C (у вас он может быть под другим символом, это тот диск, на который установлена операционная система).

Открываем Проводник, кликаем правой кнопкой мышки на диск C и выбираем из контекстного меню пункт «Свойства». В свойствах диска переходим во вкладку безопасности и кликаем на иконку «Изменить».

Далее кликаем «Добавить». В появившемся окошке прописываем в строке слово «Все». Это позволит нам сохранить изменения в доступе к диску для всех пользователей. После чего нажимаем «Проверить имена». Слово должно стать подчеркнутым – это значит, что система правильно определила нового «пользователя».

Далее устанавливаем соответствующий маркер, чтобы предоставить всем пользователям полный доступ к локальному диску C.

Кликаем «ОК» и соглашаемся с изменениями. После чего проверяем, удалось ли избавиться от ошибки при запуске служб.

Доступ для Local Service

Не уходим из свойства безопасности диска C. Снова заходим в последнюю закрытую вкладку и кликаем там «Дополнительно».

Нажимаем на поиск и далее ищем «пользователя» с именем Local Service. Добавляем его в список и далее, как и в предыдущем разделе, наделяем его полным доступом.

Командная строка

Следующее решение – ответ технической поддержки Microsoft пользователю, который тоже столкнулся с данной проблемой. В командной строке, запущенной от имени администратора (читайте здесь, как это сделать), нужно прописать поочередно две команды:

  • net localgroup Администратор /add networkservice;
  • net localgroup Администраторы /add localservice.

Важно! В англоязычной версии в первой команде указываем Administrator, а во втором Administrators (во множественном числе).

После выполнения команд перезагрузите компьютер и попробуйте запустить службу Windows.

Редактируем реестр

Следующий способ решения проблемы – работа с реестром. Для этого нам нужно узнать точное имя службы, с которой возникают проблемы при запуске.

Для этого заходим в «Службы»: комбинация клавиш Win+R и команда services.msc. Кликаем два раза левой кнопкой мыши по службе и запоминаем имя. Обратите внимание, что отображаемое в списке имя не является именем самой службы. Реальное название отображается в свойствах службы.

Теперь переходим в редактор реестра (здесь подробно описано, как это сделать). В редакторе следуем по пути, указанному на скриншоте. Кликаем право кнопкой мышки по каталогу службы и выбираем из контекстного меню пункт «Разрешения».

В разрешениях нам нужно установить полный доступ для администраторов и пользователей.

Также рекомендуем предоставить полный доступ для «пользователя» Local Service, которого мы ранее добавили.

Дополнительные рекомендации

Возможно, следует отключить или удалить антивирусную программу и попробовать запустить службу. Читайте подробную статью о том, как отключить Защитник Windows 10. Также одним из вариантом будет возврат к точке восстановления. А для этого прочитайте сначала, как создать току восстановления.

Пробуйте поочередно все описанные выше методы. Один из них точно должен помочь при запуске служб.

Еще много интересного:

Отключаем поисковую службу в Windows 10.

Не  запускается служба WIndows Audio.

Отключаем лишние службы на «десятке».

Понравилась статья? Поделить с друзьями:
  • Spotify нет интернета код ошибки
  • Spore ошибка при подключении к серверу
  • Spore ошибка 2000 и 1004 на пиратке
  • Spore ошибка 1004 не стим
  • Spore ошибка 1001 как исправить