Hi,
Why would you looking for method to disable RPC service?
Many system components are dependent on this service and as a result, some Windows procedures don't work if the Remote Procedure Call service is disabled.
https://learn.microsoft.com/en-us/troubleshoot/windows-client/performance/disable-rpc-service-windows-process-not-work
----------
Hope this helps and please help to accept as Answer if the response is useful.
Best Regards,
Jenny