J
Jack Zimmer
Hello,
I am having an issue where a service, AppXSvc, is causing explorer.exe to go into a crash loop on startup. The only workarounds I have found are either disabling the AppXSvc service through the registry, or to open Task Manager when explorer starts crashing, go into the "Services" tab, find AppXSvc, right click on it, go to details, and then kill the "svchost.exe" with the corresponding PID to the service. You can see some of the things I have tried so far over at this thread: Windows Explorer crashing with code 0xc0000409. So now, I am wondering if there is some sort of program or command I can have run at startup that can do 1 of 2 things. 1: Find the PID of a service, then kill it automatically. Key word there is automatically, doing this myself is a bit of a hustle every time my system starts up. Also the PID of the service is different every time, so I couldn't just schedule a task to kill PID 6188 for example. 2: Restart the service on startup. Only problem with that is the service is marked as NOT_STOPPABLE most of the time. I have tried creating a task through Task Scheduler that runs under TrustedInstaller that attempts to restart the service, came back with "this control is not valid for the service". If there is some way that could bypass the NOT_STOPPABLE flag that could work as well.
TL;DR: Is there a program or script I could write that finds and stops a randomized PID of a service on startup?
Edit: Looking over at the thread I linked, I realized I forgot to address something. I attempt to delay the service via the registry, but the service still started up with no delay, despite the startup type showing as "Automatic (Delayed Start)" in services.msc.
Continue reading...
I am having an issue where a service, AppXSvc, is causing explorer.exe to go into a crash loop on startup. The only workarounds I have found are either disabling the AppXSvc service through the registry, or to open Task Manager when explorer starts crashing, go into the "Services" tab, find AppXSvc, right click on it, go to details, and then kill the "svchost.exe" with the corresponding PID to the service. You can see some of the things I have tried so far over at this thread: Windows Explorer crashing with code 0xc0000409. So now, I am wondering if there is some sort of program or command I can have run at startup that can do 1 of 2 things. 1: Find the PID of a service, then kill it automatically. Key word there is automatically, doing this myself is a bit of a hustle every time my system starts up. Also the PID of the service is different every time, so I couldn't just schedule a task to kill PID 6188 for example. 2: Restart the service on startup. Only problem with that is the service is marked as NOT_STOPPABLE most of the time. I have tried creating a task through Task Scheduler that runs under TrustedInstaller that attempts to restart the service, came back with "this control is not valid for the service". If there is some way that could bypass the NOT_STOPPABLE flag that could work as well.
TL;DR: Is there a program or script I could write that finds and stops a randomized PID of a service on startup?
Edit: Looking over at the thread I linked, I realized I forgot to address something. I attempt to delay the service via the registry, but the service still started up with no delay, despite the startup type showing as "Automatic (Delayed Start)" in services.msc.
Continue reading...