• Portada
    • Recientes
    • Usuarios
    • Registrarse
    • Conectarse

    Windows script to stop a service

    Programado Fijo Cerrado Movido Sistemas operativos
    5 Mensajes 3 Posters 3.1k Visitas 3 Watching
    Cargando más mensajes
    • Más antiguo a más nuevo
    • Más nuevo a más antiguo
    • Mayor número de Votos
    Responder
    • Responder como tema
    Accede para responder
    Este tema ha sido borrado. Solo los usuarios que tengan privilegios de administración de temas pueden verlo.
    • R Desconectado
      radge
      Última edición por

      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,

      tesla tienda :)

      1 Respuesta Última respuesta Responder Citar 0
      • FassouF Desconectado
        Fassou MODERADOR
        Última edición por

        And have you tried Task Scheduler?

        Intel i5 3570k / ASRock Z77 Extreme 4 / G.Skill F3-12800CL9D-8GBRL / Sapphire HD5850 / Samsung HD103UJ / TR TrueSpirit / NZXT Source 210 / OCZ ZS550W
        Intel i5 4570 / ASRock H87 Pro 4 / 2x G.Skill F3-14900CL8-4GBXM / Samsung 850 EVO 250Gb + ST1000DM003 + ST2000DM003 + HGST HDS723020BLA642 + Maxtor 6V250F0 / CM Seidon 240M / Zalman MS800 / CM MWE 550
        AMD Ryzen 7 1800X / B350 / 2x8GB Samsung DDR4-2400 CL17 / NVIDIA GTX 1070 8GB / SSD 120GB + ST4000DM004 + ST6000DM003 / EVGA Supernova 650 G2

        hlbm signature

        1 Respuesta Última respuesta Responder Citar 0
        • R Desconectado
          radge
          Última edición por

          I have already found it, it is this

          sc start upnphost

          Thanks anyway!!!

          tesla tienda :)

          1 Respuesta Última respuesta Responder Citar 0
          • Bm4nB Desconectado
            Bm4n
            Última edición por Bm4n

            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.

            hlbm signature
            ↳ Mis componentes

            R 1 Respuesta Última respuesta Responder Citar 0
            • R Desconectado
              radge @Bm4n
              Última edición por

              @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

              tesla tienda :)

              1 Respuesta Última respuesta Responder Citar 0
              • 1 / 1
              • First post
                Last post

              Foreros conectados [Conectados hoy]

              0 usuarios activos (0 miembros y 0 invitados).
              febesin, pAtO, HIAL-9000

              Estadísticas de Hardlimit

              Los hardlimitianos han creado un total de 543.5k posts en 62.9k hilos.
              Somos un total de 34.9k miembros registrados.
              roymendez ha sido nuestro último fichaje.
              El récord de usuarios en linea fue de 123 y se produjo el Thu Jan 15 2026.