Net stop spooler системная ошибка 5

Как исправить Системная ошибка 5 Отказано в доступеПри выполнении команд net user, net stop, net start и других в командной строке Windows 11 или Windows 10 вы можете получить сообщение: «Системная ошибка 5. Отказано в доступе». Начинающему пользователю не всегда ясно, чем вызвана ошибка и как решить проблему.

В этой инструкции подробно о том, почему возникает системная ошибка 5 при запуске и остановке служб или работе с учетными записями пользователе в командной строке.

Методы решения для «Системная ошибка 5. Отказано в доступе» при выполнении команд net stop, net start, net user

Системная ошибка 5. Отказано в доступе. Сообщение об ошибке в командной строке

Причина того, что в результате выполнения команд сообщается о системной ошибке 5 «Отказано в доступе» в том, что командная строка (Терминал Windows или Windows PowerShell) запущен не от имени администратора. Или, в некоторых случаях — в том, что ваш пользователь и вовсе не имеет прав администратора на компьютере.

В первом случае решение будет простым: запустите командную строку от имени Администратора, для этого вы можете:

  1. Начать набирать «Командная строка» в поиске на панели задач Windows 11 или Windows 10, а затем в результатах поиска нажать «Запуск от имени Администратора». Запуск командной строки от имени Администратора при системной ошибке 5
  2. Нажать правой кнопкой мыши по кнопке «Пуск» и выбрать «Терминал Windows (Администратор)» или «Windows PowerShell (Администратор)» Запуск терминала от администратора в контекстном меню кнопки Пуск
  3. Использовать инструкции Как запустить командную строку от имени Администратора в Windows 11 и Как запустить командную строку от имени Администратора в Windows 10.

Ошибка не будет появляться после того, как вы запустите командную строку с соответствующими правами.

Если ваш пользователь не имеет прав администратора на компьютере, но вы имеете доступ к учетной записи с правами администратора, вы можете зайти под ней, а потом сделать текущего пользователя администратором: Как сделать пользователя администратором в Windows 10 (в Windows 11 действия аналогичны).

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

System error 5: Access is denied is an error message that prevents users from installing some software. It usually pops up due to a lack of account permissions. Running a command on Windows where you need administrative rights will probably give rise to System Error 5. 

This error can be quite annoying, especially if you need to run a certain command. This article will give you different ways to fix System error 5 on your Windows 10, 8, 7, and Vista.

how to fix system error 5 has occurred

What Is The “System Error 5 Has Occurred Access Is Denied” Error?

System error 5 is an error access denied code which means that your access is denied because you don’t have the required privileges to run a certain command. For example, when you try to run a command which is supposed to stop the print spooler, you will get an error message. 

Why Causes The “System 5 Error Has Occurred” Message?

  1. Time Synchronization Problem

If your PC’s time has been set up wrongly, that can lead to the System 5 error. You can resolve it by enabling the time sync feature on the PC to ensure your system’s time is always running right. In addition to that, your system should have the correct time zone as per the region you live in.

  1. Account You Are Trying To Access Is Disabled or Doesn’t Exist On The Domain

If the account on your PC has been disabled or doesn’t exist in the specific domain name, you can get System error 5 . Ensure that the account you wish to access exists and is enabled on your domain. You might use the “netdom” command-line utility on the PC.

  1. Missing Permission To Access Remote Computer

If you are attempting to access a remote computer, make sure you have the required permissions. Your PC might throw the system error 5 if any required permission is missing. You won’t have any problems with all the permissions required from the remote computer.

  1. Command Requires Elevated System Privileges

Some commands like the ones that manage different Windows services like net use, net start, etc. require special privileges to be executed. For example, the print spooler service is a core Windows service that needs to run always. So, if you need to stop it for some reason, you will need elevated system privileges to execute it. Note that logged in as an Administrator won’t be enough in this case. 

Users who try to run the command to stop the print spooler service usually get the System error 5 messages. 

Fixing the “System error 5 has occurred” requires you to open the elevated command prompt window and run the command again. This will give you proper administrator privileges to run the commands you are getting stuck with.

  1. How To Fix The “System Error 5” in Windows 10/8?
  2. How To Fix “System Error 5 Has Occurred” On Windows 8?
  3. How to Fix System Error 5 on Windows 7?
  4. How to Fix System Error 5 on Windows Vista?

How To Fix The “System Error 5” in Windows 10/8?

System error 5 is not a major issue and can be solved if you follow a couple of simple instructions. Given below are the steps you need to follow to resolve the System error 5 on Windows 10/8:

  1. Press the Windows + X key on the keyboard and select the Command prompt (Admin) option or the Windows Powershell (Admin) option. This will open the elevated command prompt window.
press win+X and click on windows powershell (admin)
  1. You will receive a prompt on the screen asking if you want the command prompt app to make changes to your device. Click the Yes button and proceed.
click on Yes in the UAC to open elevated command prompt
  1. If it still gives the error, try running the following command:
net local administrators
execute net local administrators command
  1. You will get the names of all administrators on your device. If your name is not present or incorrect, you are not an administrator. So, first, you need to set yourself as an administrator and then, try the method.
set yourself as the administrator

You can go to the Windows search box and type in Command Prompt. Right-click on the option from the search results that says Command Prompt and then, click on Run as administrator. When prompted if you want to allow the device to make changes, click on Yes.

Now, you can begin executing the commands and the System error 5 has occurred error won’t come up again.

How To Fix “System Error 5 Has Occurred” On Windows 8?

  1. Press the Windows key on your keyboard. This will open the Windows 8 start screen for you.
  2. Type in cmd in the search box.
  3. From the search results under the Apps header, right-click Command Prompt and click on the Run as administrator option.
  4. Now, a User Account Control box might come up. Click on the Yes button, this will permit the app to make changes to the control.
  5. A black command prompt window will come up with its title bar named – Administrator: Command Prompt. That shows that this command prompt is running with some elevated privileges.
  6. Try running the command that wouldn’t run earlier. It should run properly now.

How to Fix System Error 5 in Windows 7?

system error 5 in command prompt window
  1. Click on the Start menu and type cmd in the search box. Press the Enter key.
open command prompt in windows 7
  1. Right-click on the search result that says cmd.exe. Then, click on the Run as administrator option.
open command prompt utility with elevated privileges
  1. A User Account Control box might open up, click on Yes to confirm that you want to allow the program to make changes to the PC.
  2. Enter the following commands one by one:
net user
net user administrator

Enter the password and re-enter it. This should fix the system error 5. 

command prompt error system error 5 is resolved

How to Fix System Error 5 on Windows Vista?

  1. Click on the Windows Start button located at the screen’s bottom. 
  2. Now, type in “cmd” in the Start search box.
  3. From the search results under Programs, right-click on the result that reads “cmd”. From the drop-down menu, select the “Run as administrator” option.
  4. A User Account Control box might come up. Click the Yes button. This allows the program to make changes to your system.
  5. Try running some commands to check if the error is gone or not.

What If Running Command Prompt with Administrative Privileges Failed?

If you can’t open the command prompt with administrative permissions due to some reason, you may have Registry issues. It is much likely that certain registry entries are preventing you from launching a command prompt session with elevated privileges. Here’s how you can remove the corrupt Windows registry entries:

  1. Press the Windows + R keys to launch the Run utility. Type in regedit and hit the Enter key.
  2. Go to the following path:

HKEY_CURRENT_USER\Software\Microsoft\Office\FrontPage\Addins\

  1. Right-click on the entry named FPE.com.AddIn and click on Delete
  2. Restart your system and the error should be gone.

Alternative Way To Fix The System Error 5: Modify Registry

  1. Go to the Windows search bar and type in regedit. Click on the option that says Registry Editor. 
open the registry editor
  1. From left panel, go to HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters
  2. Click on Edit and then on Add Value
  3. The new value you are adding should be named MinFreeConnections
  4. Next, click on Add > New > REG_DWORD
  5. Set the new key’s value to 5 and then, close the Registry Editor. Then, right-click on the Windows key and click on Control Panel
  6. Then, click on Network and find the Installed Network Software. Now, under the Installed Network Software, select Server and click on Configure
  7. Find the Optimization option and choose Maximize Throughput for File Sharing. Click on OK.
  8. Then, open Start and type in cmd. Right-click on the search result and select Run as administrator.
  9. Type in net stop server and net start server. Press Enter after each of these commands.
  10. Navigate to the following path: HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\FrontPage\\Addins\\
  11. Next, look for the FPE.com.AddIn entry name and right-click on it and then, choose Delete.
  12. When it is removed, Restart your machine and check if the error is gone.

Final Words

The above guide discusses how to get rid of the System 5 error on Windows 10, 8, 7, and Vista. We hope the step-by-step instructions in this article were easy to understand and helped you eliminate the error. 

logo_cmd.pngИтак, опишем проблему с сервисом печати (print spooler)  на сервере, в крупной фирме, где есть много разномастных принтеров, подключенных в терминальном режиме.

0. Суть ошибки

Эта проблема появляется в остановке сервиса печати при работе в терминале с удаленного офиса. Ошибка происходит в терминале и принтер перестает принимать документы на печать, при чем на сервере появляется «клон» принтера, и на нем начитается выстраиваться очередь на печать, а фактически печать документов не происходит.

1. Причины ошибки

Происходит ошибка в очереди печати, или если возникла ошибка при печати на принтере, либо при отмене какого-нибудь документа, либо после небольшого разрыва связи, либо при отправке документов одновременно несколькими пользователями на печать. Тогда начинается паника в офисе, а если еще и нужно срочно распечатать какой-нибудь отчет, начинаются звонки сисадминам, с криками: «СПАСИТЕ!!!ПОМОГИТЕ!!!! НЕВОЗМОЖНО РАБОТАТЬ!!!! ДА КОГДА ЖЕ ЭТО ВСЕ ПРЕКРАТИТСЯ!!!!» —  и т. д. Вот сейчас мы и опишем, как можно исправить данную неприятность в операционных системах семейства Windows.

2. Решение

Решается данная проблема перезапуском сервера печати, т. е. службы prints pooler. (Подробно о службе prints pooler можно прочитать вот здесь). Чтоб перезапустить данную службу (как и любую другую) необходимо выполнить 2 команды:

net stop spooler
net start spooler

Если операцию приходится выполнять периодически, удобнее создать «костыль» в виде файла c расширением «.bat», проще говоря «батника».

Откроем простой блокнот (удобнее всего использовать программу NotePad++) и напишем там 2 вышеназванные строчки. Сохраним этот файл, поставив расширение .bat вместо .txt, назвав его «перезапуск службы печати» или как нибудь еще, как удобнее. При запуске этого файла будет происходить перезапуск службы печати.

print_spooler_01

На скриншоте выше добавлен оператор pause в конце что бы показать работу bat-файла.

Запись опубликована в рубрике cmd с метками cmd, Windows Server 2008. Добавьте в закладки постоянную ссылку.

The “System Error 5 Has Occurred. Access Is Denied” error message may appear when you try to run certain commands in a Command Prompt window.

This means that the command required elevated privileges to run – to fix it you must open Command Prompt with elevated (administrator) system privileges.

Note that the error occurs even if you are logged into Windows with an Administrator (rather than a Standard) user account.

Keep reading for an explanation of why it happens, or see the Contents below to skip straight to a quick fix for each version of Windows.

  • What Is “System Error 5?
  • Why Does It Occur?
  • How To Fix It
    • Windows 10 – fix “System error 5 has occurred”
    • Windows 8 – fix “System error 5 has occurred”
    • Windows 7 – fix “System error 5 has occurred”
    • Windows Vista – fix “System error 5 has occurred”
  • Keyboard Shortcut To Open An Elevated Command Prompt

What Is “System Error 5”?

Microsoft describe ‘System error 5’ as an ERROR_ACCESS_DENIED code – basically access is denied because you don’t have sufficient system privileges to run the command.

The example below shows the error message appearing when I try running a command to stop the print spooler (part of my article on fixing a document stuck in the print queue)

system error 5 has occurred error message

Why Does It Occur?

In this example, the print spooler is a core Windows service that should normally run all the time. So, for security reasons, stopping that service requires elevated system privileges – it is not enough to just be logged in as an Administrator.

So if you try to run that command without these privileges, you will get the System error 5 message.

High elevated privileges are required to run many other unrestricted or system-wide commands in a Command Prompt window – especially commands that manage Windows services (e.g. net start and net stop) or that manage file sharing (e.g. net use).

To fix a ‘System Error 5 Has Occurred’ message, you need to open an elevated Command Prompt window and then run the command again. This should provide sufficient administrator privileges to run the command successfully.

Follow the 2 steps below for Windows 10, Windows 8, Windows 7 or Vista.

Windows 10 – fix “System error 5 has occurred”

Click on the Windows ‘Start’ button in the bottom left of the screen.

Type cmd into the ‘Type here to search’ search box.

open command prompt Windows 10

At the top of the search results, right click on the ‘Command Prompt’ Desktop app result and select ‘Run as administrator’.

Administrator command prompt W10

A User Account Control box may now appear – if it does, click the ‘Yes’ button to allow the app to make changes to this computer.

A black Command Prompt window opens with the word ‘Administrator’ at the beginning of the title bar.

Now try running the same command again – as shown below, you can see that in my example the command is now successful:

elevated command prompt window

Notice that the title of this window is ‘Administrator: Command Prompt’ which shows that it is running with elevated system privileges – just opening cmd on its own (without a right click) displays only the basic title of ‘Command Prompt’ so you can easily tell which is which.

Windows 8 – fix “System error 5 has occurred”

Press the Windows key on the keyboard to go to the Windows 8 Start screen.

Type cmd into the Search box.

W8 open command prompt

In the search results, under Apps, right click on the ‘Command Prompt’ result then select ‘Run as administrator’.

W8 administrator command prompt

A User Account Control box may now appear – if it does, click the ‘Yes’ button to allow the program to make changes to this computer.

A black Command Prompt window opens with the word ‘Administrator’ at the beginning of the title bar.

Now try running the same command again – as shown below, you can see that in my example the command is now successful:

elevated command prompt window

Notice that the title of this window is ‘Administrator: Command Prompt’ which shows that it is running with elevated system privileges – just opening cmd on its own (without a right click) displays only the basic title of ‘Command Prompt’ so you can easily tell which is which.

Windows 7 – fix “System error 5 has occurred”

Click on the Windows ‘Start’ button in the bottom left of the screen.

Type cmd into the ‘Search programs and files’ search box.

W7 open command prompt

In the search results, under Programs, right click on the ‘cmd.exe’ result then select ‘Run as administrator’.

W7 administrator command prompt

A User Account Control box may now appear – if it does, click the ‘Yes’ button to allow the program to make changes to this computer.

A black Command Prompt window opens with the word ‘Administrator’ at the beginning of the title bar.

Now try running the same command again – as shown below, you can see that in my example the command is now successful:

elevated command prompt window

Notice that the title of this window is ‘Administrator: Command Prompt’ which shows that it is running with elevated system privileges – just opening cmd on its own (without a right click) displays only the basic title of ‘Command Prompt’ so you can easily tell which is which.

Windows Vista – fix “System error 5 has occurred”

Click on the Windows ‘Start’ button in the bottom left of the screen.

Type cmd into the ‘Start Search’ search box.

vista open command prompt

In the search results, under Programs, right click on the ‘cmd’ result and select ‘Run as administrator’.

Vista administrator command prompt

A User Account Control box may now appear – if it does, click the ‘Yes’ button to allow the program to make changes to this computer.

A black Command Prompt window opens with the word ‘Administrator’ at the beginning of the title bar.

Now try running the same command again – as shown below, you can see that in my example the command is now successful:

elevated command prompt window

Notice that the title of this window is ‘Administrator: Command Prompt’ which shows that it is running with elevated system privileges – just opening cmd on its own (without a right click) displays only the basic title of ‘Command Prompt’ so you can easily tell which is which.

Keyboard Shortcut To Open An Elevated Command Prompt

If you prefer to use the keyboard wherever possible, or have difficulty using a mouse, it is possible to open an elevated Command Prompt window using only the keyboard:

Press the Windows key (next to CTRL at bottom left of keyboard) then type cmd into the search box – the ‘CMD’ program should appear in the search results.

Now press Ctrl+Shift+Enter at the same time to run CMD as Administrator. Then press Alt+Y at the same time to confirm ‘Yes’ to open the elevated Command Prompt window.

  • Remove From My Forums
  • Question

  • We have 7 computers on a local network 3 of them have local printers 2 and are brand new Vista equiped. we shared the local printers on the vista machines but they are unaccessable from one vista to the other… it works from an XP to a Vista, but not from a Vista to a Vista…. go figure…. When we try to add the printers, the error message that we get is: «windows cannot connect to the printer. the local print spooler service is not running. please restart the spooler or restart the machine.»

    I would appreciate any help…

    Thank you

Answers

  • I ran into this exact same issue today.

    The way we fixed it was by checking the Properties on the Print Spooler service under services.msc.

    Go to the Log On Tab and make sure that the ‘Local System account’ option is selected along with the ‘Allow service to interact with desktop’ box.

    Then set the Print spooler service to auto and start it.  After that you should have no problem installing your printer (s). 

  • You can start the Print Spooler using the following procedure:

    1. In the Administrative Tools folder (click Start, then Control Panel, then System and Maintenance and then Administrative Tools), open the Services snap-in.

    2. Locate the Print Spooler service in the list of services and confirm that the status is Started. If it is not, select the service and on the Action menu, click Start.

    You can also do this from an elevated command prompt window (right-click Command Prompt in the Start menu and click Run as Administrator) by typing the following command: net stop spooler && net start spooler

    (This is actually two commands, «Net stop spooler» and «Net start spooler», entered at the same time so that Windows processes both commands, one after the other).

  • I was also having the same problem.  I was trying to connect to the shared printer by opening up the network page, finding the shared printer on the computer that had it, right clicking on the printer name and selecting «Connect…» from the context menu.   This did not work as it failed with the same error reported above.

    I then tried connecting to the printer by going to the Printer page and selecting «Add a printer» from the button above.  This opened up a Wizard that searched for printers available.  I saw the printer I wanted and successfully connected to it and made it my default.

    Hope this helps anyone having this annoying problem.

  • This can happen if Print Spooler needs other services, and these services are not running. To resolve this issue, use the following procedure:

    1. In Services, right-click Print Spooler and then click Properties.
    2. Click the Dependencies tab. The first box lists all of the system services that must be running for Print Spooler to start. These are the dependencies.

    3. Make a note of each service, click OK and then start each service upon which Print Spooler is dependent, if the service is not already started. If a service was not started, right-click it, click Properties and then confirm that the Startup type is Automatic.

    I hope that this helps!

  • Start > Run > cmd and type «net stop spooler» after that «net start spooler» or start > run > service.msc and restart it over the GUI.

    Regards,

    Kuskaya

Понравилась статья? Поделить с друзьями:
  • Net stop bits системная ошибка 5
  • New world ошибка unrecoverable error
  • Net start wuauserv системная ошибка 1058
  • New world ошибка 30005
  • Net start audiosrv системная ошибка 5