How to disable these services ?

Bonus12 1,126 Reputation points
2020-12-09T15:58:54.877+00:00

Hi ,

On Windows 10 machines I need to disable all the following services but can't find a way of doing it via GPO or registry:

Peer Name Resolution Protocol (PNRPsvc)
Peer Networking Grouping (p2psvc)
Peer Networking Identity Manager (p2pimsvc)
PNRP Machine Name Publication Service

Any help please?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,074 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,823 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
3,048 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kapil Arya 8,351 Reputation points MVP Moderator
    2020-12-10T04:49:21.697+00:00

    Hello.

    To disable the services via registry, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<SERVICE NAME>. Set Start registry DWORD to 4. Do these for all services you want to disable and reboot.

    To disable the services using Command Prompt, execute sc stop “<SERVICE NAME>” & sc config “<SERVICE NAME>” start=disabled command.

    Hope this helps!


1 additional answer

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,356 Reputation points
    2020-12-11T02:32:10.22+00:00

    Hi,
    There are more methods you could consider to disable the services like from GUI, commands, registry and so on.
    1.Take "Disable a Service using "Sc Config" Command in Command Prompt" as example:
    Type the command below into the elevated command prompt
    sc config "service name" start=disabled

    *The Service name of a service is displayed in the service's properties.
    47148-image.png

    After successfully run the command, it will return message like: [SC] ChangeServiceConfig Success.

    Reference link:
    https://www.tenforums.com/tutorials/4499-start-stop-disable-services-windows-10-a.html
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
     

    2.If you would like to modify service via GPO, it is required to process for policy as instructed below:
    How To Configure Group Policies to Set Security for System Services
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/configure-group-policies-set-security


    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.