question

Bonus12 avatar image
0 Votes"
Bonus12 asked JennyYan-MSFT answered

How to disable these services ?

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-generalwindows-10-securitywindows-group-policy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KapilArya avatar image
0 Votes"
KapilArya answered

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!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JennyYan-MSFT avatar image
0 Votes"
JennyYan-MSFT answered

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://docs.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



image.png (12.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.