Windows 10: Stop two cantankerous services with a batch file

Discus and support Stop two cantankerous services with a batch file in Windows 10 Support to solve the problem; I have two stubborn services that slow down my shutdowns and reboots: the Macrium service, which I can stop and change to manual startup if I'm in the... Discussion in 'Windows 10 Support' started by Wisewiz, Apr 13, 2020.

  1. Wisewiz Win User

    Stop two cantankerous services with a batch file


    I have two stubborn services that slow down my shutdowns and reboots: the Macrium service, which I can stop and change to manual startup if I'm in the Services panel, but not from a command prompt or with a batch (and the service resets to automatic start every time the program updates), and the MBAM service, which I can't stop either remotely (with service-name or PID) or in the Services panel (Access denied), but it has a program icon in the tray with a right-click option to "Quit Malwarebytes," and what that switch does (exactly and only, as far as I can tell) is stop the MBAM service.

    SO, if I use the switch in the MBAM right-click menu AND open the services panel and find and stop the Macrium service, I get shutdowns and reboots that are about seven or eight or ten seconds faster. But it takes much more than ten seconds to flick the tray icon switch and open the services panel and navigate to Macrium and stop it, and then activate my shutdown shortcut

    Anybody have a notion how I can phrase a batch that will shut down both of these services pre-shutdown? I shut down my machine every time I'm going to be away from it for more than about an hour, so if I can pull off what I want to pull off, it'll save me a few minutes a month (and at my age, minutes are valuable things).

    Now, as all of you experts can tell, this is not a very high-priority question. There are no fires to put out here. But if you happen to know of a solution, and you have a few (valuable) minutes to commit to the writing up of that solution, I'd be forever grateful for your kindness. Well, maybe not forever, but for a few (valuable) minutes, anyway.

    Win 10 1909

    :)
     
    Wisewiz, Apr 13, 2020
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Apr 13, 2020
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Apr 13, 2020
    #3
  4. jkh239WTF Win User

    Stop two cantankerous services with a batch file

    batch check for services stuck in stopping or starting

    I know we can use CLI net start to display services, but is there

    a batch way to check the status, i.e.. if stuck in stopping or starting?
     
    jkh239WTF, Apr 13, 2020
    #4
Thema:

Stop two cantankerous services with a batch file

Loading...
  1. Stop two cantankerous services with a batch file - Similar Threads - Stop cantankerous services

  2. Batch File

    in Windows 10 Software and Apps
    Batch File: Hi, I am trying to create a batch file to determine whether a user account is signed on.I don't have enough experience to get it to @Echo it worked. Any advice please.Batch file:REM Query whether user SBackup is active@echo onsetlocal enabledelayedexpansionset...
  3. Batch Files

    in Windows 10 Gaming
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  4. Batch Files

    in Windows 10 Software and Apps
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  5. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  6. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  7. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: I want to make a batch file that will copy a specific folder from my USB stick to a folder on C:\ I want to know if it's possible to make a batch file that will take the folder from my USB drive no matter what the drive's letter is....
  8. Batch File

    in Windows 10 Support
    Batch File: I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a...
  9. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: I cannot remember how to open a FILE browser in batch, i was trying to create something were it opens a file browser, and the file you click on, gets deleted. https://answers.microsoft.com/en-us/windows/forum/all/batch-files/335a0e0d-62b0-4615-b303-4a7bb548cc6c"
  10. batch file

    in Windows 10 Network and Sharing
    batch file: I want a BAT file to be executed when a USB plugged in to the PC. How can I do it? https://answers.microsoft.com/en-us/windows/forum/all/batch-file/1af5ec02-b6c8-4916-959b-ed0327a964e7"