The Core Technologies Blog

Professional Software for Windows Services / 24×7 Operation


ServiceCommander 7: Larger Icons, More Services

ServiceCommander 7: Larger Icons, More Services

Hi everyone. This week, our team decided to give our free ServiceCommander utility some love. Here’s a quick roundup of the improvements.


ServiceCommander displays larger icons on the taskbar menu

Previous versions of ServiceCommander displayed 16×16 icons in the tray menu. That made for a very compact display — ideal to fit many Windows Services on-screen.

But the feedback from folks using the software was that the menu was too small. Apparently most users manage only two to five services and a more spacious user interface would make ServiceCommander easier to use.

Taking that feedback on board, we switched the icon size to 32×32. You can see what the new, roomier taskbar menu looks like in this screenshot:

ServiceCommander 7 screenshot

But you can switch back to small icons if you like

The new interface should be better for most users but what if you’re working with lots of services? The reality is that your screen may not be able to fit the longer taskbar menu if it contains more than twenty entries.

For users who want to pack in the pixels — and those who don’t need glasses just yet — we added a new option to use small icons on the menu.

To switch to the more compact menu display:

  1. Click the ServiceCommander icon to open the menu.

  2. Select Configure.

  3. In the Configure ServiceCommander window, switch to the Options tab.

  4. Check the Show small icons on the taskbar menu box:

    Show small icons on the taskbar
  5. Click the Done button to save your change.


ServiceCommander shows more services in the taskbar menu

When managing many services, the taskbar menu would only show up to 30 services. Any more than 30 would “overflow” into a “More Services” menu, which required an extra click to access.

ServiceCommander 7 removes that hard cap of 30 services and computes the limit based on the resolution of your screen. The end result is that you’ll see as many menu entries as your screen will hold.

ServiceCommander overflows to the More Services entry

For example, on our 2560×1440 display, we can fit 29 services without overflowing. However, if we switch to small icons, the more compact menu will accommodate up to 50 services:

ServiceCommander fits more services in the menu

ServiceCommander 7 is fully compatible with Windows Server 2025

This new release works flawlessly on Windows Server 2025. Fortunately we didn’t even have to change much code to support the new operating system — just a few behind-the-scenes routines.

Enjoy!

Posted in ServiceCommander | Tagged , , | Leave a comment

AlwaysUp 16 Handles Common Application Failures — So You Don’t Have To

AlwaysUp 16 Handles Common Failures, So You Don't Have To

As AlwaysUp enters its 21st year of babysitting important applications — and reducing interruptions during dinner time — we’re pleased to release version 16 to all customers.

Version 16 is a significant step forward. Most notably, the powerful sanity check feature has been overhauled to prioritize ease of use while retaining flexibility. And beyond that, a handful of fixes and improvements make life easier for anyone looking to run an application as a Windows Service. Dig into the details below.


AlwaysUp continuously monitors your application and quickly restarts it if it stops working

With regards to failure detection, AlwaysUp has always gone beyond the basics. Most notably, the powerful sanity check feature — which has been included since version 3 — allows you plug in your own executable and check for any kind of failure you like, not just crashes and hangs.

But plugging in a sanity check could be difficult. The truth is that not everyone has the time or expertise to write code or compose a batch file. And the somewhat predictable consequence, is that the sanity check feature was limited to the technically savvy.

AlwaysUp 16 changes all that. Now, anyone can introduce a sophisticated sanity check — in seconds.

For example, let’s say that the application you’ve installed as a Windows Service with AlwaysUp runs a HTTP/S web server. That’s a very common practice these days, as enterprise programs like Prometheus and ngrok illustrate.

You’ll probably want to make sure that the web server component doesn’t fail because if it does, you’d have to jump onto the server and restart the software. Here’s how you would set up a sanity check to guard against that:

  1. Edit your application in AlwaysUp.

  2. Check the Whenever it fails a periodic sanity check box and click the Set button on the right:

  3. In the Add Sanity Check window, choose Check that a web server is responding properly from the list and click Next:

    Choose the web server sanity check
  4. On this page, enter the URL of the page that AlwaysUp should check. That address will probably be rooted at localhost (or 127.0.0.1) since you’re checking a local application:

    Enter the URL to monitor
  5. After clicking Next, specify how often AlwaysUp should ping your web server:

    Specify the sanity check frequency
  6. Finally, confirm your settings and click the Add button to save your new sanity check:

    Confirm your sanity check

And with that sanity check in place, AlwaysUp will visit the URL every 5 minutes. If the URL doesn’t load — or returns an invalid response — AlwaysUp will promptly restart your application.

Check out the AlwaysUp sanity checks page for the full complement of built-in sanity checks available today.


No more errors when your script completes very quickly

Most customers rely on AlwaysUp to manage their long-running applications. In fact, keeping an executable running 24/7 is the norm. AlwaysUp launches those applications at boot and they never stop running until the machine shuts down (or something goes wrong).

But there’s another use case that has grown in popularity over the years. Instead of starting an application and expecting it to run for a long time, some customers use AlwaysUp to run a script over and over again. And in that scenario, the script may only run for a few seconds.

For instance, one customer uses AlwaysUp start a Python script that scans a folder and imports its files into a database. Once the script completes, they have AlwaysUp launch it again in fifteen minutes.

If there are lots of files, the script may run for 30-40 seconds. On the other hand, if there are no files, the script returns almost immediately because there is no work to do.

Unfortunately, that “quick exit” would occasionally confuse AlwaysUp. Did the script do its work and complete normally? Or was there a problem that caused it to abort? More pointedly, should AlwaysUp treat the speedy exit as success or failure?

Instead of trying to determine the answer programmatically — which has proven to be quite challenging — we decided to put you in the driver’s seat. After all, you understand your script much better than we do! 🙂

So if you’re running a program or script that can run and finish quickly — in less than five seconds — please enable this new option on the Restart tab:

Don't panic if your application completes very quickly

Once that’s in place, AlwaysUp won’t assault you with phantom errors when your application does its work and exits very quickly.


Other fixes & improvements

  • When setting up automatic logon to avoid Session 0, your auto-start applications will now be launched in the new session by default. That’s what most customers want. As a result, this option in the Autologon window will be checked by default:

    Auto-start AlwaysUp applications in the logon session

    Note that you can find the Autologon window by selecting Autologon from the Tools menu in AlwaysUp.

  • Improved efficiency when processing records from the Windows Event Logs. The new code makes a difference when AlwaysUp has to sift through tens of thousands of records in the System or Application logs.

  • When running a custom sanity check program/script, AlwaysUp will now treat a failure to launch the program as an inconclusive result. The application won’t be restarted, as it would have been in previous versions.

    We made this change to avoid spurious restarts, because those failures were likely unrelated to the application being monitored.

  • Full support for the official release of Windows Server 2025 (build number 26100.2605). Recent releases of AlwaysUp are also compatible with Server 2025, but version 16 is the best so far. 🙂

As usual, please review the release notes for the full list of features, fixes and improvements included in AlwaysUp version 16.


Upgrading to AlwaysUp 16

If you bought AlwaysUp version 15 (after December 2023), you can upgrade to version 16 for free. Simply download and install “over the top” to preserve your existing applications and all settings. Your registration code will continue to work as well.

If you bought AlwaysUp version 14 or earlier (before December 2023), you’ll have to purchase a discounted upgrade to use version 16. Please purchase upgrades here — you’ll save 50% off the regular price.

See the complete upgrade policy for additional details.

Thank you for reading!

Posted in AlwaysUp | Tagged , , , , , , , , | Leave a comment

Service Protector Feature Spotlight: Restart A Stuck Service

Restart Stuck Services

Why should Service Protector restart a service that’s stuck starting or stopping?

When a Windows Service is in the “Starting” or “Stopping” status, it’s probably not be doing its work. For all intents and purposes, your service may be down during those periods.

Usually that’s not a problem though, because services typically move through those transitory states very quickly. In our experience, a service isn’t in the starting or stopping state for longer than a couple of seconds — while it opens network connections, connects to a database, shuts down cleanly or performs another important one-time task.

But there are unfortunate occasions where a service takes too long to start or stop. And in those situations, the only cure is to forcibly terminate and restart the service.

As part of its mission to keep your Windows Service running 24/7, Service Protector has code to automatically detect and terminate a stuck service. We recommend activating that feature if you’re managing a service that has trouble moving in or out of the running state quickly.


How do I activate the feature in Service Protector?

When adding (or editing) your service, you can instruct Service Protector to deal with the stuck states on the Extras tab:

Enable stuck service protection

With the settings in the screenshot above, Service Protector will terminate and restart your service if it lingers in the “Starting” or “Stopping” state for longer than a minute.

In our experience, 60 seconds is about right for most services. Under normal situations, it’s rare for a Windows Service to take much more time as it starts or stops.


What are your best tips for handling stuck services?

Tip #1: Adjust the timeouts for your service

While the default timeout of 60 seconds will suit most customers’ needs, every Windows Service is unique. As such, you should definitely tune the timeouts for your specific situation.

For instance, if your service takes a while to initialize — perhaps because it has to negotiate complex operations in a distributed environment — you should increase the starting timeout to compensate.

Tip #2: Setup email alerts to identify “flapping”

With this feature in place, Service Protector will automatically restart your service whenever it gets stuck for too long. Usually that timely restart is enough to get things moving again.

But sometimes restarting isn’t the answer. We’ve seen situations where the service simply got stuck again and repeatedly restarting did no good. Manual intervention was required.

We recommend setting up email alerts to help you detect edge-case situations like that. That way, if you see Service Protector continuously restarting your stuck service, you can jump in to save the day.


Posted in Service Protector | Tagged , , , | Leave a comment

Service Protector 10.5 Restarts your Windows Services when Critical Events Occur

Service Protector 10.5 Restarts your Windows Services when Critical Events Occur

To cap a very busy 2024, our team released Service Protector 10.5 on December 20. Happy holidays to you and yours!

Here’s what’s new in this release.

Automatically restart your Windows Service if a “bad” event is logged

One of the most unique features built into Service Protector is the ability to restart your service whenever something important goes wrong. In fact, you can install a sanity check, to constantly interrogate your service and quickly detect when things go off the rails.

Version 10.5 introduces a powerful new sanity check. With our latest addition, you can automatically recycle your Windows Service whenever one or more critical Windows events are reported.

The new sanity check is most helpful when external/system changes can impact your important Windows Services. For example, you can instruct Service Protector to restart your service if any of the following security events occur:

You may want to check out the hundreds of Windows security events to see if any should trigger your service to restart.

How to watch out for critical events

The new sanity check is very easy to set up. Here’s the process, step by step:

  1. Edit your service in Service Protector.

  2. Switch to the Monitor tab.

  3. Check the Whenever it fails a periodic sanity check box and click the Set button:

    Enable the sanity check feature
  4. In the Add Sanity Check window that comes up, choose the Check for one or more adverse Windows events entry from the list:

    Choose the check for adverse events sanity check

    Click Next to move on.

  5. We’ve arrived at the main configuration page for the sanity check. Choose the Windows Event Log to monitor and enter one or more events to watch out for.

    In this screenshot, we’ve targeted a couple of events in the Security log:

    Select the Windows Event Log and the enter the event IDs

    Click Next to move on.

  6. On the following screen, specify how often to check the event log. Every 5 minutes works for our situation:

    Specify how often to check the Windows Event logs

    Click Next to go to the next page, confirm your settings and complete the process.

Sorting!

If you’ve installed many services, you can now sort the list of protectors from the header.

Any of the three columns — Service, Service State or Protection — can be designated. Simply click the column header to sort your services or to change the direction of the sort. The caret ( or ) will show you which column is sorted.

For example, the Protection column is sorted ascending (A-Z) in this screenshot:

Services sorted by Protection, ascending

Clicking the Protection header again will reverse the sort, to order rows descending (Z-A):

Services sorted by Protection, descending

Note that the sort order is “sticky”, meaning that it’s remembered across runs of Service Protector.

Other fixes & improvements

  • Full support for the official release of Windows Server 2025 (build number 26100.2605). Older builds of Service Protector are also compatible with Server 2025, but this one’s the best so far. 🙂

  • To help troubleshoot your sanity checks, the full transcript is written to the Windows Event Log whenever a sanity check fails. That report will highlight exactly what went wrong.

    For example, you may see a message like this reported when the check website sanity check fails:

    The check website sanity check failed

    Happy debugging!

As usual, please review the release notes for the full list of features, fixes and improvements included in Service Protector version 10.5.

Upgrading to Service Protector 10.5

If you purchased Service Protector version 9 (after April 2023), you can upgrade to version 10 for free. Simply download and install over your existing installation to preserve your existing services and all settings. That way, your registration code will continue to work.

If you bought Service Protector 8 or earlier (before April 2023), you will need to upgrade to use version 10.

Please buy upgrades here — at a 50% discount.

See the complete upgrade policy for more details.

Enjoy!

Posted in Service Protector | Tagged , , , | Leave a comment

Essential Windows Services: Microsoft Defender Antivirus Service / WinDefend

Microsoft Defender Antivirus Service

What is the Microsoft Defender Antivirus (WinDefend) Windows Service?

The WinDefend service is part of Microsoft Defender Antivirus — a real-time, anti-malware solution distributed with the Windows operating system.

On computers where Microsoft Defender is the primary antivirus deployed, the WinDefend service is set to start automatically at boot. Furthermore, Windows sets permissions to make it nearly impossible for anyone to stop the service:

WinDefend starts automatically at boot

However, on systems where another antivirus package is in charge, the Microsoft Defender Antivirus service takes a back seat. Instead of starting automatically, the service will start manually — only on demand:

WinDefend will start on demand

And as you can see in the screenshot above, the service isn’t “locked down” either. An administrator can easily start, stop or restart it.


What happens if I stop WinDefend?

It depends on how your system’s configured.

If you have another antivirus package installed…

First, if you’ve installed another antivirus package, stopping the WinDefend service won’t cause any problems. In fact, it’s probably better not to run the service, to avoid conflict with your main virus protection software.

For example, we rely on Avira Security to protect our PC. And things work beautifully when the Defender Antivirus Windows Service is stopped:

The WinDefend service is stopped when Avira Security is installed

If Defender is the primary/only antivirus package installed…

On the other hand, if Microsoft Defender is the primary antivirus package protecting your computer, it will be difficult to stop the WinDefend service. That’s by design; Microsoft wants to ensure that your computer is always protected from attack. As such, you’ll notice that the service is “unstoppable” from the Services application:

The Microsoft Defender Antivirus service is unstoppable

And any attempts to stop WinDefend with the NET or SC commands will fail with “access is denied” errors:

Access denied when stopping WinDefend

But if you’re the persistent type and you do manage to stop the WinDefend service — perhaps by following this helpful video — the effect will be straightforward. Your computer won’t be protected from malicious actors. Please be careful, especially if you’re connected to the Internet!


Is it OK to disable the Defender service?

Again, it depends on your situation and what you’re willing to accept.

You can easily disable the Defender service if you have a third-party antivirus package installed. That’s completely fine.

But if Defender is your only line of defense, disabling WinDefend will leave your computer vulnerable to attack. Is that acceptable in your situation? Only you can say.


Questions? Problems?

If you would like to know more about the Microsoft Defender Antivirus service, or you have a specific problem, please feel free to get in touch. We’ll do our best to help you!

Posted in Windows Services | Tagged , , , , | Leave a comment