Windows script to stop a service
-
I have a laptop with Windows 7 Professional OS with all updates up to date and every time I turn on the laptop the "svchost" service consumes 250mb of ram, manually from the taskmgr I go to the executable and in the windows services I use the "stop service" option in the "upnphost" service and said ram stops growing, I do this every day manually and I would like to know if anyone would know how to do it in a windows script so that I can put it in the system startup and forget about it.
Thanks,
-
And have you tried Task Scheduler?
-
I have already found it, it is this
sc start upnphost
Thanks anyway!!!
-
The easiest thing is to disable that service in the system services as shown here in the first way: http://computerstepbystep.com/upnp_device_host_service.html But you lose the uPnP service that is used for applications to open the ports they need on the router, the solution is not that, that is just a patch that leaves you useless any application that uses that service. Somehow you have a bigger problem like a virus, some failed update, the router firmware with some vulnerability, a program that misuses the protocol, etc. I would check what the real cause is and try to solve it.
PD. It could also be something not related to this service you say, like it can be https://support.microsoft.com/en-us/help/2889748/high-memory-usage-by-the-svchost.exe-process-after-you-install-windows or any other problem related to Svchost.
-
@Bm4n said in Windows script to stop a service:
The easiest thing is to disable that service in the system services as shown here in the first way: http://computerstepbystep.com/upnp_device_host_service.html But you lose the uPnP service that is used for applications to open the ports they need on the router, the solution is not that, that is just a patch that leaves you useless any application that uses that service. Somehow you have a bigger problem like a virus, some failed update, the router firmware with some vulnerability, a program that misuses the protocol, etc. I would check what the real cause is and try to solve it.
PD. It could also be something not related to this service you say, like it could be https://support.microsoft.com/en-us/help/2889748/high-memory-usage-by-the-svchost.exe-process-after-you-install-windows or any other problem related to Svchost.
Thanks, I have windows7 professional with all updates to date.
I use nod32 with a license for antivirus.I've run a scan with nod and another with malwarebytes and it says I don't have any suspicious elements.
What else can I do? Thanks