The Core Technologies Blog

Professional Software for Windows Services / 24×7 Operation


Our Software is TAA Compliant

Our Software is TAA Compliant

What is the TAA?

TAA refers to the Trade Agreements Act (19 U.S.C. & 2501-2582), which was enacted by the U.S. government in 1979 to foster fair and open international trade.

The TAA requires that the U.S. Government acquire “U.S. made” products — ones that are produced or undergo a “substantial transformation” within the United States or a designated country.

TAA compliance make it possible for U.S. government agencies and educational institutions to do business with USA-based companies like Core Technologies Consulting. Federal procurement contracts that require TAA compliance include GSA (General Services Administration) Schedule contracts, IDIQ (Indefinite Delivery, Indefinite Quantity) contracts, and most DoD (Department of Defense) contracts.

AlwaysUp, Service Protector and all our software comply with the TAA

Core Technologies Consulting’s software solutions are designed, implemented and supported entirely in the United States. As such, our software meets and exceeds the TAA standards outlined above.

Please contact us if you have questions about TAA compliance

If you need more information about TAA compliance, please get in touch. We’ll be happy to provide an official, signed statement suitable for government agencies.

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


Q&A: How can a Non-Admin User Start my AlwaysUp Service?

How can a Non-Admin User Start my AlwaysUp Service?
  Hi — long time user of AlwaysUp here!

I followed your suggestion in the FAQ to allow my non-admin user to control the Windows Service that AlwaysUp created. Now he can run the NET command to start and stop our application in Session 0 whenever he likes, which is great. But we’re still having one problem.

Sometimes the user needs to start the application in the current session to make changes. The user manual says that running AlwaysUp.exe with the “-restart-in-current-session” parameter will do the trick.

And that command works fine for me (I’m an admin). However, the non-admin user is prompted for admin credentials because his account doesn’t have the rights to run AlwaysUp.

Is there any way to start AlwaysUp.exe without needing admin credentials?

— Steve

Hi Steve. Thanks for getting in touch — and for being a loyal customer!

Permissions is always a thorny topic but we can help you. Let’s start by reviewing why there is no direct remedy from the AlwaysUp executable (AlwaysUp.exe).

AlwaysUp needs admin rights to do its work

Unfortunately it’s not possible to launch AlwaysUp without elevated rights. That’s because AlwaysUp needs to:

  1. Read, create and update your Windows Services

  2. Interrogate the Windows Event logs for errors and warnings

  3. Carefully monitor your important applications and react quickly when they use too much memory, hog the CPU, hang or crash.

Typically only administrators — with broad access to low-level systems — can perform those actions.

So your non-admin user won’t be able to run AlwaysUp.exe. But as you know, there are other ways to start or stop the Windows Service created by AlwaysUp. Let’s explore the NET command since you’re already familiar with how it works.

Use NET to start your application in a given session

To recap, you’re already using the NET command to start your application. If your application is called “MyServer” in AlwaysUp, then this command will do the trick:

NET START "MyServer (managed by AlwaysUpService)"

Notice that you must add the "(managed by AlwaysUpService)" suffix as that is how the service is named in the Service Control Manager.

In any case, running that command instructs AlwaysUp to start your application in Session 0 — the background desktop hosting Windows Services. You won’t see the application on your normal desktop.

Fortunately slight variants of the NET command will enable you to launch your application in a specific session.

Provide a Session ID

To start in a specific session, add the session’s numeric identifier (the Session ID) to the command. The format is:

NET START "<ApplicationName> (managed by AlwaysUpService)" /<SessionID>

For example, to start “MyServer” in Session 2, run:

NET START "MyServer (managed by AlwaysUpService)" /2

That will launch your application in Session 2, regardless of who is logged in there.

Provide a Windows username

Alternately, you can pass a username to start the application in the session occupied by that Windows user. The format of that command is:

NET START "<ApplicationName> (managed by AlwaysUpService)" /"user:<UserName>"

For example, to start “MyServer” in the session where “psmith” is logged in, run:

NET START "MyServer (managed by AlwaysUpService)" /"user:psmith"

Note that if the given user is not logged in, AlwaysUp will start the application in Session 0.

How to use NET to start your application in the current session

To achieve what you’re trying to do, we recommend going with the username variant of the NET command.

This command — which features the USERNAME environment variable — will start your application on the current user’s desktop:

NET START "<ApplicationName> (managed by AlwaysUpService)" /"user:%USERNAME%"

Again, if your application is called “MyServer”, the precise syntax is:

NET START "MyServer (managed by AlwaysUpService)" /"user:%USERNAME%"

When you run the command, %USERNAME% expands to the username of the account invoking the command. In that way, the command works for whoever runs it.

We recommend saving the command to a batch file and placing the file on the user’s desktop, for easy access. With that, your application will only be a double-click away.

Enjoy!

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

Q&A: How do I Launch a Service after AlwaysUp Starts my Application?

How do I Launch a Service after AlwaysUp Starts Google Drive
   I’m interested in purchasing your AlwaysUp application but would like some further information first if you don’t mind.

My main goal is to run Google Drive for desktop as a service. But there is an existing Windows Service that I need to run after Google Drive has launched. Is it possible to use AlwaysUp to start it after Google Drive has started?

— Shaheed

Hi Shaheed, thanks for trying AlwaysUp.

The answer to your question is yes. Please follow these steps to setup Google Drive and your other service in AlwaysUp.

1. Install Google Drive as a service with AlwaysUp

As described in our step-by-step tutorial, the new AlwaysUp Application Advisor supports Google Drive for desktop:

Application Advisor supports Google Drive for desktop

Instead of leaving you to figure out and apply the best settings to support background file synchronization, simply click through the Advisor’s straightforward prompts to create your Google Drive service — in less than 2 minutes.

At the end of the process, your Google Drive for desktop will be installed as a 24/7 Windows Service. Afterwards, test and make sure that the new service syncs your files as expected.

2. Have AlwaysUp start the other service after it runs Google Drive

Now that Google Drive is set up, let’s turn our attention to starting the other service at the right time.

Please:

  1. Edit your Google Drive for desktop entry in AlwaysUp.

  2. Move to the Automate tab.

  3. Check the When the application starts… box at the top.

  4. Enter the following command (which will start your service):

    C:\Windows\System32\net.exe START "<Service-Name>"

    where <Service-Name> is the name of your service. Note that the quotes around the name are required if it contains a space.

  5. In the Every section, specify when the service should be started.

  6. Check the Only option and set the value to 1 (because we only need to start the service once).

  7. Finally, save your settings.

For example, if you want to start the Print Spooler service (named “Spooler”) 30 seconds after Google Drive starts, your Automate tab should look like this:

Use AlwaysUp to automate NET START

3. Change your service to start manually

Is Windows starting your service when the computer boots? If so, you may want to change that because with step 2 in place, AlwaysUp will start the service when it’s needed.

To prevent Windows from starting your service at boot:

  1. Start the Services application (run “services.msc” to launch it)

  2. Scroll the list to find your service.

  3. Double-click the entry to bring up the service’s properties.

  4. In the Startup type field, select Manual. It should look like this:

    Set the service's startup type to Manual
  5. Save your changes.

And that’s it!

Next time your computer boots:

  1. Windows will automatically start AlwaysUp

  2. AlwaysUp will start Google Drive

  3. And after a few seconds/minutes (whichever you specified), AlwaysUp will start your service.

All the best.

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

Q&A: Can AlwaysUp Auto-Start and Recycle my Leaky Program Once per Day?

Can AlwaysUp Restart my Leaky Program Once per Day?
  I am trying out AlwaysUp and so far I like the way it works.

I’m running this program as a service is for only two reasons: to start when the computer boots and (the most important one) to be able to schedule it to stop and restart once a day at the time of my choosing. I need to do this or the program will run out of memory over time and cause all kinds of trouble when I am away from my computer for more than 24 hours.

Is AlwaysUp capable of doing this?

— Ron

Hi Ron.

Yes, AlwaysUp can do both of the things you would like to do.

AlwaysUp will start your program at boot

The first task — starting your program when your computer boots — was the main reason for building AlwaysUp. Rest assured that AlwaysUp will do everything in its power to ensure that your program starts quickly after a power cycle or any other event that causes your PC to reboot.

Note that AlwaysUp provides a couple of options for when to launch your application:

  1. Automatically, when the computer boots: Starts your application as quickly as possible, usually seconds after boot

  2. Automatically, but shortly after the computer boots: Runs your application about 2 minutes after boot, after critical operating system services (e.g. networking, security) have started.

Make your selection on the General tab when configuring your application:

Options to start your application as a service

AlwaysUp will restart/recycle your program daily

The second task — recycling your application daily to keep it “fresh” — is easily done too.

In fact, recycling an application is one of AlwaysUp’s most popular features! It comes in handy for programs that get sicker over time, like yours does.

To illustrate, here are the steps to stop and restart your application at 3 AM every morning:

  1. Edit your application in AlwaysUp.

  2. Switch to the Monitor tab. The settings on this screen specify when AlwaysUp should intervene and stop your application.

  3. Since we want to stop at a specific time, check the Every box, choose Day from the drop-down and enter 3:00 AM in the time field:

    Stop your application daily at 3 AM
  4. Switch to the Restart tab.

  5. Ensure that the When your application stops, restart it box at the top is checked. If not, AlwaysUp won’t restart your application after it stops it at 3 AM.

    By default, AlwaysUp will restart your program immediately but you can specify another schedule if you like:

    Restart your application after it stops
  6. Save your changes.

Putting it all together…

With the recommendations above in place, when your computer boots:

  1. Windows will start AlwaysUp

  2. AlwaysUp will start your application

  3. AlwaysUp will watch your application and quickly restart it if it stops for any reason

And whenever 3 AM rolls around, AlwaysUp will:

  1. Stop your application

  2. Restart your application — so fresh, so clean.

That addresses all your concerns, right? Please let us know if not.

Best of luck with your program!

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