Categories
Self-organization

How to run any program as a background service in windows

In linux you can use command & to run command on the background, the same will continue after the shell is offline. I was wondering is there something like that for windows…

How to run any program as a background service in windows

6 Answers 6

I believe the command you are looking for is start /b *command*

For unix, nohup represents ‘no hangup’, which is slightly different than a background job (which would be *command* & . I believe that the above command should be similar to a background job for windows.

I’m assuming what you want to do is run a command without an interface (possibly automatically?). On windows there are a number of options for what you are looking for:

Best: write your program as a windows service. These will start when no one logs into the server. They let you select the user account (which can be different than your own) and they will restart if they fail. These run all the time so you can automate tasks at specific times or on a regular schedule from within them. For more information on how to write a windows service you can read a tutorial online such as (http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx).

Better: Start the command and hide the window. Assuming the command is a DOS command you can use a VB or C# script for this. See here for more information. An example is:

You are still going to have to start the command manually or write a task to start the command. This is one of the biggest down falls of this strategy.

  • Worst: Start the command using the startup folder. This runs when a user logs into the computer
  • Walter Glenn is a former Editorial Director for How-To Geek and its sister sites. He has more than 30 years of experience in the computer industry and over 20 years as a technical writer and editor. He’s written hundreds of articles for How-To Geek and edited thousands. He’s authored or co-authored over 30 computer-related books in more than a dozen languages for publishers like Microsoft Press, O’Reilly, and Osborne/McGraw-Hill. He’s also written hundreds of white papers, articles, user manuals, and courseware over the years. Read more.

    How to run any program as a background service in windows

    If you’re like most Windows users, you have lots of great little utilities that run when you start Windows. While this works great for most apps, there are some that would be nice to start even before a user logs in to the PC. To do this, you’ll need to run the app as a Windows service.

    Windows services are a special class of programs that are configured to launch and run in the background, usually without any sort of user interface and without needing a user to log in to the PC. Many gamers and power users know them as those things you used to disable to help speed up your system, though that’s really not necessary any more.

    The primary advantage of running an app as a service is that you can have a program start before a user to log in. That can be particularly important with apps that provide important services you want to be available when you’re away from your computer.

    A perfect example of this is Plex, a media server app that can stream local content to just about any device you own. Sure, you could let it sit in the system tray like a normal program, but what if the computer restarts due to a power outage or scheduled updates? Until you log back in on the PC, Plex wouldn’t be available. That’s irritating if you have to run to another room to start Plex back up while your popcorn gets cold, and super irritating if you’re out of town and trying to stream your media over the Internet. Setting up Plex as a Service would solve that problem.

    Before getting started, you should be aware of a couple of important caveats to running an app as a service:

    • The app will not put an icon in the system tray. If you need the interface available regularly for an app, it may not be best suited to run as a service.
    • When you need to make configuration changes or updates, you’ll need to stop the service, run the program as a regular app, do what you need to do, stop the program, and then start the service again.
    • If the program is already set up to run when Windows starts, you’ll need to disable that so that you don’t end up with two instances running. Most programs have an option in the interface for toggling this setting. Others may add themselves to your Startup folder, so you can remove them there.

    Ready to roll? Let’s talk about how to set it up.

    Step One: Install SrvStart

    To run an app as a service, you’re going to need a small, third-party utility. There are several out there, but our favorite is SrvStart. It was originally designed for Windows NT, and will work with just about any version of Windows from Windows XP on up.

    To get started, head over to the SrvStart download page and grab the utility. The download contains just four files (two DLL and two EXE files). There’s no installer; instead, copy these to your computer’s C:\Windows folder these to your main Windows folder to “install” SrvStart.

    How to run any program as a background service in windows

    We’re also going to assume that you’ve already installed and set up whatever program you’re going to turn into a service, but if you haven’t, now would be a good time to do that too.

    Step Two: Create a Configuration File for the New Service

    Next, you’ll want to create a configuration file that SrvStart will read to create the service. There’s a lot you can do with SrvStart, and you can read the full details on all the configuration options on the documentation page. For this example, we are only going to use two commands: startup , which specifies the program to launch, and shutdown_method , which tells SrvStart how to close the program when the respective service is stopped.

    Fire up Notepad and create your configuration file using the format below. Here, we’re using Plex, but you can create a file for any program you want to run as a service. The startup command simply specifies the path where the executable file resides. For the shutdown_method command, we’re using the winmessage parameter, which causes SrvStart to send a Windows close message to any windows opened by the service.

    Obviously, adjust the path and name according to the program you’re launching.

    How to run any program as a background service in windows

    Save the new configuration file wherever you like, and replace the .txt extension with a .ini extension. Make note of the file name, since we’ll need it in the next step. For ease of typing at the Command Prompt, we suggest saving this file temporarily right on your C: drive.

    Step Three: Use the Command Prompt to Create the New Service

    Your next step is using the Windows Service Controller (SC) command to create the new service based on the criteria in your configuration file. Open Command Prompt by right-clicking the Start menu (or pressing Windows+X), choosing “Command Prompt (Admin)”, and then clicking Yes to allow it to run with administrative privileges.

    How to run any program as a background service in windows

    At the Command Prompt, use the following syntax to create the new service:

    There are a couple of things to note in that command. First, each equal sign (=) has a space after it. That’s required. Also, the value is entirely up to you. And, finally, for the value, you’ll want to use auto so that the service starts automatically with Windows.

    So in our Plex example, the command would look like this:

    Yes, you read that right: I used C:PlexService.ini instead of C:\PlexService.ini . The command requires you to remove the slash.

    When you run the command, you should receive a SUCCESS message if everything goes well.

    How to run any program as a background service in windows

    From this point on, your new service will run whenever Windows starts. If you open the Windows Services interface (just click Start and type “Services”), you can find and configure the new service just like you would any other.

    How to run any program as a background service in windows

    And that’s all there is to it. If you have apps that start with Windows and you’d rather they start without needing a user to log in, it’s easy enough to turn any app into a service. We’ve only just touched on the basic method for creating and running a new service, but there’s a lot more you can do with SrvStart to fine tune how a service runs. Be sure to check out the documentation if you’d like to learn more.

    In Windows, apps can continue to perform actions even when you are not actively in the app’s window. These are commonly called background apps. You can decide which apps will run in the background, and which won’t.

    Control whether an app can run in the background

    Select Start , then select Settings > Apps > Apps & features.

    Scroll to the desired app, select More options on the right edge of the window, then select Advanced options.

    In the Background apps permissions section, under Let this app run in the background, select one of the following options:

    Always—The app runs in the background, receiving info, sending notifications, and staying up-to-date even when you’re not actively using it. This option may use more power.

    Power optimized—Windows decides what will save the most power while still allowing the app to receive notifications and update periodically. This option may limit an app that uses a lot of power.

    Note: You can also manage background activity for apps from the battery settings.

    Stop an app from running in the background

    If you don’t want to get notifications or updates for an app when you’re not using it, you can set it so it won’t run in the background.

    Select Start , then select Settings > Apps > Apps & features.

    Scroll to the desired app, select More options on the right edge of the window, then select Advanced options.

    In the Background apps permissions section, under Let this app run in the background, select Never.

    Exceptions to the privacy settings

    Desktop apps won’t appear in the App list. To allow or block desktop apps, use the settings in those applications.

    Note: How can you tell if an app is a desktop app? Desktop apps are usually downloaded from the Internet or with some type of media (such as a CD, DVD, or USB storage device). They’re launched using an .EXE or .DLL file, and they typically run on your device unlike web-based apps (which run in the cloud). You can also find desktop applications in Microsoft Store.

    Control which apps can run in the background

    Select Start , then select Settings > Privacy > Background apps.

    Under Background Apps, make sure Let apps run in the background is turned On.

    Under Choose which apps can run in the background, turn individual apps and services settings On or Off.

    Stop most apps from running in the background

    Select Start , then select Settings > Privacy > Background apps.

    Under Background Apps, make sure Let apps run in the background is turned Off.

    Exceptions to the privacy settings

    Desktop apps won’t appear in your Choose which apps can run in the background list and are not affected by the Let apps run in the background setting. To allow or block desktop apps, use the settings in those applications.

    Note: How can you tell if an app is a desktop app? Desktop apps are usually downloaded from the Internet or with some type of media (such as a CD, DVD, or USB storage device). They’re launched using an .EXE or .DLL file, and they typically run on your device unlike web-based apps (which run in the cloud). You can also find desktop applications in Microsoft Store.

    A Sitecore Host application can run as a Windows Service.

    A Windows Service is an executable application that the operating system runs in the background. It does not require a logged-in user session to run. In Windows, the Service Control Manager (SCM) manages all Windows service processes. The SCM is a special system process that starts and stops the services.

    You can configure a Sitecore Host application to run as a Windows Service by passing the -s or –service argument to the host application.

    Currently this feature is only compatible with Sitecore Host applications that target the full .NET framework. If not, the -s option is not available.

    Running the above command from anywhere other than a Windows Service (for example, from the command line) results in the following error message:

    Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.

    Install a Sitecore Host application as a Windows Service

    Use the following PowerShell command to install a new service:

    Start the service

    To start the service, use the following Powershell command:

    Stop the service

    To stop the service, use the following Powershell command:

    Uninstall the service

    To uninstall the service, use the following Powershell command:

    Hi all,
    I would like to run a small program in background, hidden (not to disturb or bother everything I’m doing).

    I would prefer no window or anything else is visible

    do you know how to do it?

    Enter to win a a “Don’t Panic” inspired embroidered hand towel

    • check 18 Best Answers
    • thumb_up 88 Helpful Votes

    5 Replies

    Depends on how you define hidden resp. anything else visible in the context of your original post.

    Some programs may be started as conventional program or as service. The same applies to apps. But usually, they are still visible, e.g. in the process table and usually also in some other management interfaces or tables.

    One step further is to run a program as system service. Not every program supports such a mode. And a system service might be hidden in various default views of process tables and other management interfaces. But these can be changed to include system services too in their reports resp. views or tables.

    In order to hide a running program completely, you must abort it. Even kernel services can be get displayed while running.

    Start your Windows 11/10/8 or Server 2022/2019/2016/2012 program at boot and keep it running 24×7. Achieve 100% uptime today!

    When run as a Windows Service, your application can start automatically without someone having to log on, survive user logons/logoffs, and run entirely without user intervention. No programming is required.

    And best of all, after years of constant refinement based on client feedback and many thousands of installations on a variety of PCs, AlwaysUp remains a trusted, reliable solution for many large and small businesses worldwide.

    Take advantage of our risk-free 30-day trial and find out for yourself!

    An easy to use Interface to run any Program as a Windows Service

    AlwaysUp‘s intuitive GUI makes it very easy to configure any application as a Windows Service. Just specify two key items (a name and the path to your application) and you are on your way! Come back for the advanced features later.

    How to run any program as a background service in windows

    Key Features & Benefits of Running an Application as a Windows Service with AlwaysUp

    • Ensure that any application (.exe, batch file, .com, .pif, script, shortcut, perl script, java app, php, delphi, vb, etc.) runs 24×7
    • Very easy to use — install your application as a Windows Service in just a few seconds!
    • Able to automatically start your application when your computer boots, to run when no user is logged in and to run despite logon/logoffs — all to guarantee uptime without manual user intervention
    • Converts both GUI and non-GUI applications to run as Services
    • Constantly monitors your application and restarts it whenever it fails
    • Secure — no need to auto-logon to Windows
    • Able to detect and restart “misbehaving” applications that hang, hog the CPU, or consume too much memory
    • Able to restart your application (or reboot the computer) at a scheduled time
    • Able to boost your application’s priority to ensure that it gets preferential treatment on the host computer
    • Emails you with details of crashes, restarts and other problems
    • Supports the integration of your own custom “sanity check” utilities, executed regularly to test if your application is functioning normally or not
    • Automatically dismisses common “Application error” dialog boxes that prevent crashed applications from fully exiting
    • The intuitive GUI makes it easy to set up your application as a Windows Service, but no GUI is necessary once your application has been configured
    • Supports powerful automation, to automatically dismiss custom dialogs, fill in forms, etc. from your program running as a Windows Service
    • Reports all activities to the Windows Event Log
    • Works flawlessly in all virtual environments (VMWare, Virtual PC, etc.)
    • Very efficient; demands minimal CPU & memory resources
    • Compatible with Session 0 Isolation in Windows Server 2022/2019/2016/2012 and Windows 11/10/8
    • Control AlwaysUp applications from your web browser using our free add-on program, AlwaysUp Web Service
    • Free, courteous technical support via email or phone
    • Site, OEM and Volume licensing available to suit your needs
    • Branding for Enterprise, Site and OEM licensees
    • No programming required
    • Future-proof; tailored for Windows 10 & Server 2019 and has earned the “Certified for Windows Server 2012” logo (and others) from Microsoft.
    • Trusted by many of the world’s most recognizable companies
    • Robust and stable, with an installed base in the tens of thousands

    But perhaps most important of all, AlwaysUp was designed and implemented by Senior Software Engineers with over 25 years of real-world experience developing robust, mission-critical applications. Our software is of the highest quality, and we stand by it without reservation.

    Start your PHP script in the background when your PC boots. Keep it running 24/7 or schedule it to restart several times a day

    PHP is a popular programming language. It is often integrated with web servers but works just as well when creating standalone applications.

    To set up a PHP script to run as a background windows service with AlwaysUp:

    Download and install the PHP package, if necessary.

    We have installed PHP in C:\PHP and we’ll reference that location throughout this tutorial.

    Next, please ensure that your PHP script can run normally from the command line.

    Start a command prompt (Start button > Run > cmd.exe)

    In the window that appears, type the full path to the PHP executable (php.exe) followed by the full path to the script you wish to run as a windows service. Be sure to quote each component containing at least one space!

    Since we have placed PHP in C:\PHP, and our script is C:\PHP\sample-php-script.php, our command line is:

    Hit the Enter key to execute the command line. If your script doesn’t work as expected please resolve the issues now.

    Note that if your script doesn’t work here then it won’t work with AlwaysUp!

    Here is the code of our simple script:

    How to run any program as a background service in windows

    And here is the result from running it on the command line:

    How to run any program as a background service in windows

    Everything looks good!

    Next, start AlwaysUp.

    Select Application > Advisor to launch the Application Advisor:

    How to run any program as a background service in windows

    Click Next to get started:

    How to run any program as a background service in windows

    Choose PHP from the list of applications and click Next:

    How to run any program as a background service in windows

    The Advisor will spend a few seconds gathering information about your PHP installation.

    Afterwards, enter the full path to your PHP executable (php.exe) and click Next to move on:

    How to run any program as a background service in windows

    Enter the full path to the PHP script you would like to run and click Next to continue:

    How to run any program as a background service in windows

    For best results, PHP should run in an account where have run it successfully. Enter the user name and password of your Windows account and click Next to continue:

    How to run any program as a background service in windows

    We’re almost done! Click Next to continue:

    How to run any program as a background service in windows

    The Add Application window contains all the recommended settings for running your PHP script 24×7 after your PC boots. If you are curious, you can cycle through the tabs and review the options that have been chosen.

    Click Save to record your new PHP service:

    How to run any program as a background service in windows

    This next window provides guidance if you want your script to run periodically (that is, not 24×7). If that is the case, this article may be helpful too.

    Click Done when you are ready to move on.

    How to run any program as a background service in windows

    A new entry for your PHP script will appear in the AlwaysUp window. However, the state will be “Stopped” because the service and your script are not yet running:

    How to run any program as a background service in windows

    To start the service, which will kick off the PHP script, choose Application > Start “PHP. “. In a few seconds, the state will transition to “Running”:

    How to run any program as a background service in windows

    That’s it! Next time your computer boots, your PHP script/service will be launched immediately, before anyone logs on.

    We encourage you to edit the entry in AlwaysUp and check out the full complement of settings that may be appropriate for your environment. For example, you can boost the priority of the PHP process, monitor the executable for excessive CPU usage, configure a weekly report, and much more.

    PHP script not working properly as a Windows Service?

    Visit the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a windows service.

    From AlwaysUp, select Application > Report Activity > Today. to bring up a HTML report detailing the interaction between AlwaysUp and PHP. The AlwaysUp Event Log Messages page explains the more obscure messages.

    Consult the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

    On Windows, sometimes there is the need to start a specific application or to run a batch file in background or in foreground, by using the task scheduler. This tutorial contains step-by-step instructions on how to set a Windows scheduled task to run in the Background (hidden) or in the Foreground (visible).

    How to Set a Scheduled Task to Run in the Background.

    The way on how a scheduled task will run (hidden or visible), can be determined on the ‘General’ tab of the Scheduled Task’s properties.

    1. By default, when you create a new scheduled task, the task is set to Run only when user is logged on. As a result of that setting the scheduled task will run in the foreground.

    How to run any program as a background service in windows

    2. If you want to run the scheduled task in background (hidden), then select the Run whether user is logged on or not option and click OK.

    How to run any program as a background service in windows

    3. Then type the account password and click OK.

    How to run any program as a background service in windows

    * Note: If the scheduled task/program doesn’t start in the background, after applying the above steps, then there is an optional way to run the scheduled task in the background, by using the SYSTEM account. But, keep in mind that running programs as SYSTEM is a potential security risk, because the SYSTEM account has full privileges on your machine and your data.

    Anyway, if you want (for any reason) to start a scheduled program in the background by using the SYSTEM account, then at scheduled task’s properties, apply the following steps/settings:

    1. Click Change User or Group.

    How to run any program as a background service in windows

    2. At ‘Enter the object name’ box, type system and click OK.

    How to run any program as a background service in windows

    3. Click OK again and you done!

    How to run any program as a background service in windows

    That’s it! Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.

    For example, in Bash, I can do this:

    Is there any equivalent in Windows? I can’t seem to figure out a way to do this with the windows version of emacs.

    7 Answers 7

    The command to launch programs from the command-line in Windows is “start”

    You may want to use the MIN option to start a program minimized

    I don’t know if it will be sufficient, but try

    It will not go into background but it will rather start separate cmd.exe window for the command.

    HaHa,I successed ,To use sublime text3 as a server of markdown preview is my propose,after I closed sublime text’s window,i won’t work. I’d try many methods,at last it works. first,you should create a bat to start this program.

    sencond,run this bat by schedule task.

    This result is that it works to avoid to show sublime text window.and it work conflict with sublime text normally opened.

    Maybe you had guessed ,I use OmniMarkupPreviewer plugin to preview markdown.I had fixed this bug(or not perfect feature) that it uses different view id every time.

    Depends on which version of Windows you’re using.

    In Vista you should be able to type the name of the exe in your path and have it live after the command prompt is closed.

    How to run any program as a background service in windows

    The START command is used at an MS-DOS prompt to start an MS-DOS-based or Windows-based program. The program is started as a separate task that can be run in the foreground or background.

    How to run any program as a background service in windows

    Unfortunately I do not think that this is possible.

    You can do this in a Windows Scripting Host script, with something like:

    Where the “0” states that the resulting window should be hidden (for other options, see the documentation at http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx) and the “true” states that you want to wait for the command to complete before your script carries on.

    It would be a simple exercise to wrap this up in a generic “run this command hidden” script that you could use from the command line.

    If you have Microsoft’s new new PowerShell installed, then there may be an easier way to do this (I’ve not worked with PowerShell yet).

    If you are happy to have the window minimised then you can do that with the “start” command that other mention. Unfortunately the “/B” option (which sounds like it is what you want) is only for commands and it doesn’t stop windowed applications appearing on screen.

    Note: which ever of the above you use to you start a program with a hidden/minimised main window, there is nothing to stop it creating new windows that are visible, or bringing the main window up and into focus, once it is running.

    Let us see how to run a Python program or project in the background i.e. the program will start running from the moment device is on and stop at shut down or when you close it. Just run one time to assure the program is error-bug free

    One way is to use pythonw, pythonw is the concatenation of python+without terminal window, i.e. run python without terminal window. You can use it by running the following line on the terminal:

    Here’s the background.py is the file:

    How to run any program as a background service in windows

    In Linux and mac, for running py files in the background you just need to add & sign after using command it will tell the interpreter to run the program in the background

    It will run the program in the background also simultaneously you can use a terminal. There will process id for the background process, if you want you can kill process also by using as you can’t just kill it by CTRL+C , To kill it, open another terminal session and use the command

    kill is abbreviated for killing process while -9 used to tell to kill it immediately, the corresponding status will be updated. In order to get your output, you can flush it up in a file by using

    python filename.py > filenameToFlush &

    It will be generating output i.e. flushing output in the file but it’s updated in the buffer memory, you have to wait for the termination of the program to reflect output in a hard disk file. To resolve this, you just need to tell python interpreter that don’t use buffered memory steps:

    End/kill currently running the file

    Now use utility

    python -u filename.py > FileToFlush &

    It will directly put the output in the file you have selected.

    If you close terminal before the end of the program, all processes executed by the terminal will stop, A hangup situation is arising in order to counter problem you need to use nohup command as shown below nohup will assure that process is running till the end whether you close parent terminal. nohup stands for no hangup

    Now you don’t need to flush output in any file as nohup utility generates a file named nohup.out while executing. It will be like log file. The name of the output fill generated by nohup will reflect on. To terminate this execution you will need ID process, There is no problem if you can remember or if you can’t, you need to search for file Just use following command

    grep is for pattern searching, it will be reflecting process id on terminal just kill it by using kill -9 ID. Now the process is terminated

    Question Info

    1. Click the Start button.
    2. Type Power Options then hit Enter.
    3. Select your current plan.
    4. Click Change plan settings.
    5. Click Change advanced power settings.
    6. On the Advanced settings tab, double-click Sleep then Sleep after.
    7. Change the value of Settings to 0.
    8. Click OK to save the changes.
    • On the left pane of the Privacy settings screen, scroll down and click Background apps. Finally, on the Background apps settings screen, if you want to put all programs to sleep on Windows 10 (stop them running on the background), toggle the Let apps run in the background switch from On to Off.

    Quick Answer: How To Keep Programs Running In Sleep Mode Windows 10?

    • Open up Power Options in the Control Panel. In Windows 10 you can get there from right clicking on the start menu and going to Power Options.
    • Click change plan settings next to your current power plan.
    • Change “Put the computer to sleep” to never.
    • Click “Save Changes”

    Do programs continue to run in sleep mode?

    When computer is under sleep mode, all programs get suspended. Hence, your program live stock will not be running.

    How do I keep Windows 10 from going to sleep mode?

    Question Info

    • Click the Start button.
    • Type Power Options then hit Enter.
    • Select your current plan.
    • Click Change plan settings.
    • Click Change advanced power settings.
    • On the Advanced settings tab, double-click Sleep then Sleep after.
    • Change the value of Settings to 0.
    • Click OK to save the changes.

    Why is my computer shutting down when I put it to sleep?

    Head to Control Panel > Hardware and Sound > Power Options > Change When the Computer Sleeps to change this setting. The power button can put your computer to sleep when you press it, if you like. You can also select Sleep or Hibernate from the Power menu.

    Does computer work in sleep mode?

    Sleep: In sleep mode, the PC enters a low-power state. The PC’s state is kept in memory, but other parts of the PC are shut down and won’t use any power. It takes longer to resume from hibernate than sleep, but hibernate uses much less power than sleep.

    Some Windows programs are more convenient to have running in the background and out of the way. We’ll show you how to avoid needing to manually minimize a program every time you run it.

    Ed Rhee, a freelance writer based in the San Francisco Bay Area, is an IT veteran turned stay-at-home-dad of two girls. He focuses on Android devices and applications while maintaining a review blog at techdadreview.com.

    Some Windows programs are better run in the background and out of the way. To avoid having to manually minimize a program every time you run it, you can configure the program’s shortcut so it will automatically run minimized. Here’s how:

    In our example, we’re going to configure TechSmith’s Snagit software to automatically start up in a minimized window. Snagit is a screen-capture program that doesn’t need to be run in the foreground. Snagit doesn’t have a setting to allow it to start it up minimized, so we’ll configure Windows 7 to do it for us.

    Step 1: Right-click on the shortcut of the program you want to start minimized and select Properties.

    Screenshot by Ed Rhee

    Step 2: Click on the drop-down menu under Run.

    Screenshot by Ed Rhee

    Step 3: Select “Minimized,” then click the OK button.

    The next time you start the program, it’ll start up minimized and out of the way. If the program has been written to minimize to the notification area in the system tray it’ll show up there; otherwise, it’ll minimize to your taskbar.

    Screenshot by Ed Rhee Note: This works in Windows XP and Vista as well.

    Ever wonder what was run in that Console window that briefly appeared on your screen? In this guest post, Craig Loewen – our awesome summer intern explains how you can find out what command-line applications run on your machine. Over to you Craig …

    At some point during any user’s time using Windows, they have probably had a Console Window pop open for a millisecond and then disappear, leaving them to wonder ‘What was that?’.

    I had exactly the same experience which led me to investigate, answer that question, and reveal a way to obtain a list of every process that attached itself to a console window!

    For some background, a console window (running as ConHost.exe) opens & is attached to a command-line application when executed. When Windows launches a new process, an event with ID 4688 is generated. This event is disabled by default, and needs to be turned-on through a Group Policy Object setting before it can be tracked.

    Note: Take a minute to consider whether you should enable command line auditing before doing so. Nathan Gau wrote a blog post about this where he detailed the following:

    “[enabling command line auditing] will generate a lot of security events. If you have tools such as ArcSight, Splunk, OMS, or SCOM collecting these events, you’d be wise to do this incrementally to ensure that you aren’t overloading these tools, and I’d add that if you don’t have a plan in place to review and respond to what you find, then you should think about that before you start turning on auditing that won’t be looked at. The other problem is that by turning on command line auditing, anyone that can read security events could read the contents, and potentially read something sensitive. So please, think this through carefully. A full write up on TechNet can be found here.”

    Once you are sure that this is the right course of action for your system, enabling command line auditing is very straightforward. Full instructions can be found here, but let’s step through the process:

    Here are some screenshots of how to enable logging on your system.

    1) First, open the Group Policy Editor: hit start, type “group”, and hit the “Edit Group Policy” item in your search results.

    2) Enable Audit Process Creation:

    Local Computer Policy

    Advanced Audit Policy Configuration

    System Audit Policies

    Double click the “Audit Process Creation” item, check the “Success” box and hit OK.

    How to run any program as a background service in windows

    3) Enable command line process creation

    Navigate to the following items:

    Local Computer Policy

    Audit Process Creation

    Double-click the “ Include command line in process creation events ” setting, select the “Enabled” field and hit OK.

    How to run any program as a background service in windows

    Be sure to reboot your PC so that process tracking is fully enabled. After rebooting, your machine should now start logging process creation events.

    Let’s find and view these process creation events:

    You can view process creation events in one of two ways, either with PowerShell, or Windows Event Viewer.

    In PowerShell

    Open a PowerShell window with administrative privileges, this is necessary to access the logs. Then simply type the command:

    The number at the end of the command (currently 10) determines how many processes to show you before PowerShell stops looking for them.

    How to run any program as a background service in windows

    In Windows Event Viewer

    If you prefer a GUI based approach, it is also possible to view this list in Windows Event Viewer. Open Event Viewer and create a custom view:

    How to run any program as a background service in windows

    Navigate to the XML tab and click ‘Edit Query Manually’ and press ‘OK’ on the dialogue box that will open:

    How to run any program as a background service in windows

    Into the text box, paste the following piece of XML:

    Press OK, give your Custom view a name and description, and then you should see items inside of the event view. To find out what process created the console window click on an item and look at the ‘Creator Process Name’:

    How to run any program as a background service in windows

    Once you’ve finished recording your data and discovering what processes were launched, please disable command line auditing which will stop tracking when processes are created. And just to be sure that tracking is fully disabled, be sure to reboot your PC. Your computer will then run just the same as before.

    We hope you find this guide useful if you ever need to track down what command-line processes are running on your machine.

    Previous Post
    Next Post
    Tip / Trick

    Universal Apps is one of the most important strategies for Microsoft in Windows 10. Compared to traditional desktop programs, there are many pros and cons. One different point is that Universal Apps have abilities to run and send/receive push notifications in the background, even with Connected Standby devices. In other words, they’re just like apps on smartphone and tablet. With these apps running in the background, it’s always a good idea to manage them so you can maximize your battery life.

    How to manage background apps in Windows 10

    In Windows 10, managing background apps is easy. You can prevent any app from running in the background or set it to always run even if Battery Saver is on.

    First off, you need to open Battery settings by typing “Battery” into the search bar on the Taskbar and choose the result “Battery Saver.” In Settings window, click the link “Battery use.”

    How to run any program as a background service in windows

    Then you’ll see the list of apps and programs that has been consuming the battery. To manage background apps, you simply tap “Change background app settings.”

    How to run any program as a background service in windows

    Afterwards, you’re presented with a list of installed apps that can run in the background. To prevent a app from running in the background, you just need to switch its toggle to the off position.

    How to always allow background apps

    You may notice that I mentioned Battery Saver above. It’s a new feature in Windows 10 that suspends most of the background apps when the battery reaches a set percentage (20% is the default). However, you’re allowed to select a specific app to override this feature. That means the app will run and consume power normally in the background regardless the state of Battery Saver.

    To always allow an app to run in the background, the easy way is to add it to an exclusion list. So first, you need to have the Battery setting window opened. Then select the link “Battery saver settings.” In the next pane, you can see a section called “Always allowed.” It’s the Battery Saver’s exclusion list. Just tap the big plus icon “Add an app” to add any app you want to always run in the background.

    Launch your favorite apps every time you boot up

    How to run any program as a background service in windows

    How to run any program as a background service in windows

    • Wichita Technical Institute
    • Tweet
    • Share
    • Email
    • Tweet
    • Share
    • Email

    What to Know

    • Launch Windows Start and select the Settings app.
    • Open the Apps section and then tap Startup.
    • Toggle apps you want to launch when Windows 11 boots.

    Windows 11 lets you control startup programs by adding a dedicated interface to the settings menu. Originally added to Windows 10, this feature makes adding and removing startup programs far easier for most people. Here’s how to add programs to startup in Windows 11.

    How to Add Programs to Startup in Windows 11

    You can add or remove startup programs using a menu built into the Windows 11 settings menu. Here’s how to access it.

    Open the Windows Start menu.

    How to run any program as a background service in windows

    Select the Settings app.

    How to run any program as a background service in windows

    Find and select Apps from the menu on the left side of the Settings app.

    How to run any program as a background service in windows

    Tap Startup.

    How to run any program as a background service in windows

    You will see a list of apps with toggles. Flip a toggle on to add a program to startup or off to remove a program from startup.

    How to run any program as a background service in windows

    The Startup menu will automatically list or remove apps when you install or uninstall them.

    It also provides an estimate of how much a program might increase the startup process. This estimate ranges from No impact to High impact. Don’t read too much into this estimate, however. In our experience, even older Windows 11 PCs can handle over a half dozen High impact startup programs without significantly slowing Windows 11’s performance.

    How Do I Remove My Startup Programs in Windows 11?

    You can remove programs using the same steps listed above. Flip a toggle to the off position on the list of Startup apps to stop it from starting when Windows boots.

    What Programs Must Run at Startup?

    None of the programs listed in Startup must run when Windows boots. You can still use the operating system with every program toggled to off. However, some programs are more important than others.

    Programs that automatically sync data with the cloud, such as OneDrive, iCloud, Slack, or Microsoft Teams, should generally be left on. Leaving them on means you won’t have to wait for files to download and won’t miss out on notifications.

    It’s safer to turn off programs that don’t sync data or only sync data you infrequently access. Examples could include software that manages a wireless keyboard or a background process that manages cloud sync for an image editor.

    What If a Program Isn’t Listed in Startup?

    The Startup list is useful, but it may not list every app that is installed. Windows 11 (as well as older versions of Windows) sometimes fail to detect all installed software. This happens most frequently with programs released prior to Windows 8.

    Odds are you can still add or remove the program from startup, but you’ll need to use an older method that digs deeper into Windows’ settings. Our guide to how to add programs to startup in Windows 10 provides detailed instructions.

    Use the Windows key+R keyboard combination to open the Run dialog box. Enter shell:startup to open the Windows 10 startup folder. Right-click in the folder > select New > Shortcut > Browse > New > Finish to add a new startup program. Repeat as desired to launch other apps when you start your computer.

    How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a program from the terminal window, say, nm-applet :

    When it’s started, it occupies the foreground of the terminal window.

    Is there any simple way to run the program in the background without needing to leave the terminal open or have it occupy the whole terminal?

    On that note, I did find a way to run programs from the terminal and have it allow for other inputs, by appending an ampersand ( & ) to the command as such:

    But this isn’t much use as any processes started in the terminal are killed once the terminal is closed.

    9 Answers 9

    I’ve recently come to like setsid . It starts off looking like you’re just running something from the terminal but you can disconnect (close the terminal) and it just keeps going.

    This is because the command actually forks out and while the input comes through to the current terminal, it’s owned by a completely different parent (that remains alive after you close the terminal).

    I’m also quite partial to disown which can be used to separate a process from the current tree. You use it in conjunction with the backgrounding ampersand:

    I also just learnt about spawning subshells with parenthesis. This simple method works:

    And of course there’s nohup as you mentioned. I’m not wild about nohup because it has a tendency to write to

    /nohup.out without me asking it to. If you rely on that, it might be for you.

    And for the longer-term processes, there are things like screen and other virtual terminal-muxers that keep sessions alive between connections. These probably don’t really apply to you because you just want temporary access to the terminal output, but if you wanted to go back some time later and view the latest terminal activity, screen would probably be your best choice.

    The internet is full of screen tutorials but here’s a simple quick-start:

    How to run any program as a background service in windows

    This Itechguide teaches you how to put programs to sleep on Windows 10. The guide covers 5 steps to put programs to sleep on Windows 10.

    1. Right-click the Windows 10 Start menu and click Settings.

    How to run any program as a background service in windows

    1. Then, on the Windows Settings screen, click the Privacy category.

    How to run any program as a background service in windows

    1. On the left pane of the Privacy settings screen, scroll down and click Background apps.

    How to run any program as a background service in windows

    1. Finally, on the Background apps settings screen, if you want to put all programs to sleep on Windows 10 (stop them running on the background), toggle the Let apps run in thebackground switch from On to Off. All the apps will be turned off – see the second image below.

    How to run any program as a background service in windowsHow to run any program as a background service in windows

    1. However, to put a specific app to sleep, leave the Let apps run in thebackground switch On. Then, toggle the switch beside the app you want to put to sleep from On to Off.

    How to run any program as a background service in windows

    You can use the 5 steps covered in this Itechguide to put programs to sleep on Windows 10! I hope you found this Itechguide helpful. If you found it helpful, kindly vote Yes to the “Was this post Helpful” question below.

    Alternatively, you could ask a question, leave a comment or provide feedback with the “Leave a Reply” form found towards the end of this page.

    Finally, for more Windows 10 Itechguides, visit our WINDOWS 10 HOW-TO page. You may also find our Work from Home page very helpful.

    Are you in need of automatically run specific programs and computer tasks at a given time, sounds convenient and indeed time saving right? While this might look like a very futuristic approach towards computers, this can be possibly done with the help of certain programs. If you want to run program automatically work related applications do system check-ups and backups etc, you can do it so by simply using task schedulers.

    Task schedulers are small applications meant to run or do certain computer tasks at a given time. It is targeted for busy individuals who often spend tons of time in front of computer doing repetitive things. Depending on the application, you can use it to shut down or restart the system, open websites, open files, run programs, create pop-up memos, etc. For example, you can open the GoTo Meeting app and prompt you to join the meeting on time. Discover more about running program automatically by reading below.

    Hassle Free Ways to Automatically Run Programs

    Windows Shutdown Assistant

    Don’t be confused with its name because aside from shutting down your computer, Windows Shutdown Assistant can automatically log off, restart, hibernate system. Equally, it can run programs, open URLs, execute commands and open files at specified times. On top of it, you can use it to create visual reminders as well as personalized notes.

    With this software, you don’t need to be an expert on scripts or commands and schedule program to run, it is so easy to handle that even novice users won’t get let anything hinder them in scheduling tasks.

    After installing Windows Shutdown Assistant on your computer, you need to take the following steps:

    1. Specify the time schedule in “Trigger” section.
    2. Select the appropriate task as “Run File or Program” in “Actions”. Click the button beside the “File Name”, browse your PC and select executive file of a program.
    3. Click the “Add to action list” button.
    4. Create as many tasks as you want by simply repeating the steps above.
    5. Click the “Start” button on the right to carry out the selected tasks.
    6. When time is up, the certain program will be activated. You can leave your computer to work according the schedules.

    How to run any program as a background service in windows

    Aside from the fact that Windows Shutdown Assistant can schedule programs to run automatically, it is similarly equipped with other useful features you would truly enjoy. This software not only schedules time to activate a program, but also terminates the program as desired. At the same time, it is possible to add images to the visual break reminder, edit colors and fonts of notes, and many more. It comes fully compatible to all versions of Windows, from Windows XP to the newer Windows 8. In the same way, it has a multi-language interface for a more customary usage. Watch the demo to learn more about it.

    How to run any program as a background service in windows

    Windows Task Scheduler

    First introduced on Windows 95, Windows Task Scheduler is a built-in feature of all Microsoft Windows Operating Systems. Being a native application, this tool needs not to be installed. You can use it immediately given that you have the Windows Service Pack already installed on your system. This nifty tool from Microsoft can automatically run programs such as notepad, email, or close running applications, display messages and shut down the system at user specified times.

    Below is a simple tutorial about how to use it:

    1. Click the “Start” button and on the search bar type in “Task Scheduler”.
    2. Open the application and on the right pane click “Create basic task”.
    3. Just follow the wizard and select the appropriate trigger and action. “Action” is the desired task that needs to be automated while “Trigger” is the specified time or event you wish the action to be activated.
    4. Click the “Finish” button once everything is set.

    How to run any program as a background service in windows

    Albeit the fact that you don’t need to install other applications or pay certain programs just to start tasks automatically on your computer, the Windows Task Scheduler has its own share of loopholes. First is that it can only offer a handful of actions, and the features and available triggers are limited. Additionally, running it consumes too much memory as well as resources, such drawbacks may cause frequent hangs, system errors, program freezing, bugs, error messages and all others.

    Depending on your desires, there are many ways on how you can schedule programs to run automatically. For automating very basic tasks and programs, you can use the Windows Task Scheduler. But don’t forget to check if you have the latest version of Windows Service Pack installed on your system. However if you need to automate particular programs to facilitate your works or need to open up webpages and files, using the Windows Shutdown Assistant will give you a flawless operation.

    I have a certain application that runs by creating a window on startup, and when you try to minimize the application it just closes the main frame and runs in the background. I was wondering how you can make it run in the background on startup instead of popping up. I have Windows 10 Home, if that information is needed.

    How to run any program as a background service in windows

    4 Answers 4

    Try setting the application to start with the Task Scheduler . If you configure it to run with the System account, it should remain hidden:

    How to run any program as a background service in windows

    How to run any program as a background service in windows

    Shortcut files allow you to specify how you want the program to launch. Here’s one way to do what you’re asking, assuming the program is in your Start menu Startup directory:

    1. Open Windows Explorer (you can use Win+E for this).
    2. Paste this path into the location bar: %appdata%\Microsoft\Windows\Start Menu\Programs\Startup . If you don’t see your program there, try this location instead: %programdata%\Microsoft\Windows\Start Menu\Programs\Startup
    3. Right-click the program (it’ll actually be a link file, with a little arrow in the corner of the icon) and select Properties .
    4. Go to the Shortcut tab of the window that opens (if you didn’t start there).
    5. One of the options will be Run: with a drop-down next to it (probably saying Normal window ). Change the drop-down to Minimized .
    6. Hit OK (if you get a UAC prompt, allow the action).

    The next time you log in, the program will still run. but it will be minimized from the start, which probably means it won’t even appear. You can try launching it directly from Windows Explorer to see what this will look like.

    Windows Task Manager

    The Microsoft Windows Task Manager is a general, quick, and easy method of viewing what programs, background processes, and apps are running on the computer. If your computer is running slowly, this is a beneficial tool to see a program potentially takes up too much CPU or memory resources on your computer.

    You can access the Task Manager by pressing the Ctrl + Alt + Del shortcut keys on your keyboard, then select Task Manager. You can also right-click with your mouse on the Windows Taskbar and select Task Manager.

    As shown in the picture below, in Windows 8 and Windows 10, the Windows Task Manager opens with the Processes tab selected. In Windows 7 and earlier, the Task Manager opens with the Applications tab selected. In both cases, the applications currently open and running on the computer are displayed. From here, you can end any application that is not responding by selecting it in the list and clicking the End Task button.

    How to run any program as a background service in windows

    The Applications tab is not present in the Windows 8 and Windows 10 Task Manager.

    The Processes tab displays applications that are running, and Windows system processes. You can identify what processes are consuming your resources by clicking the “CPU” or “Memory” (titled “Mem Usage” in Windows 7 and earlier) column headers. Doing so sorts the process list by how much of that resource they are using. Click the header multiple times to toggle between highest-to-lowest and lowest-to-highest sort order.

    How to run any program as a background service in windows

    Windows process tool

    Unfortunately, not all processes and services are displayed by the Windows Task Manager. If you’re concerned about hidden malicious software, run a utility such as HijackThis, process the log, and use our Windows process tool.

    There are two common solutions to start a program automatically after the server reboots: use Task Scheduler, or make the program start as a Windows service at bootup. These solutions work for some situations when the program you need to start only needs to run as a background (unseen) process. In this article, we will address how to automatically log in a user and launch a GUI program when the system reboots.

    How to Automatically Launch a Program on Startup

    First, download a Microsoft provided program called Autologon.exe

    After extracting the .zip, run Autologon.exe and enter the credentials for the Windows user you are currently using (for example, Administrator). Click Enable. Now, the Administrator user will log in automatically after the system is rebooted.

    Next, open Task Scheduler, and click Create Task… in the right-hand menu. Fill in each of the settings tabs with the options below. In the third tab Actions choose the .exe program you want to run automatically:

    How to run any program as a background service in windows

    General Tab: Fill in a name. Select “Run only when user is logged on.”

    How to run any program as a background service in windows

    Triggers Tab: Click “New…” and then select Begin the task: At log on. Set it to Specific user: and then choose your user (Administrator). Click OK to save the trigger.

    How to run any program as a background service in windows

    Actions Tab: Click “New…” and then select Action: Start a program. Click “Browse…” and browse to the .exe file of the program you want to launch automatically.

    The last 2 tabs should remain with the default settings. Click OK to save the new task!

    Now, create a second task. This time, we will use exactly the same settings to launch a Windows service. This will disconnect the user from the local desktop after your program is launched, while leaving the user account running and open to access via Remote Desktop Connection or another login.

    Use all of the same settings for this task as the previous one, but choose the program C:\Windows\System32\rundll32.exe, and fill in Add arguments (optional) with “user32.dll, LockWorkStation”.

    How to run any program as a background service in windows

    Click OK to save the second task. Now you should have 2 new tasks in Task Scheduler, which you can find under Active Tasks in Task Scheduler:

    How to run any program as a background service in windows

    Confirm the configuration by rebooting your server. Next time you connect with Remote Desktop, or via the local terminal, the program should be open and running.

    Note: You can repeat the first task as many times as you need, if additional applications should be started automatically.

    This article applies to any Windows system, including:

    • Windows Server 2012 R2, 2008 R2, 2003 R2
    • Windows 10, 8, 7, Vista, XP

    The walk-through above was performed on Windows Server 2012 R2.

    I have problems with my computer breaking down while using Firefox. Don’t know why, but that is not my question now.

    The problem is that for some reason or another Firefox is running as background app when I restart the computer. I can’t however find Firefox among the background apps in the privacy list (in Windows 10) so I can’t remove it from the background apps.

    Since Firefox is running in the background I don’t get a Firefox window so I can’t access the program in any way. Last time this happened I reinstalled Firefox but that is a rather painful process. Is there an easier way?

    Remember I can only access the Firefox files, not the program itself

    Chosen solution

    Firefox stores preferences in multiple different files; this article gives details on many of Firefox’s settings files: Recovering important data from an old profile.

    For future reference, you could try creating a new profile to test whether settings are causing a problem. More info in this article: Profile Manager – Create, remove or switch Firefox profiles.

    (To avoid accidents, do not remove profiles without backing up your real data first. See: Back up and restore information in Firefox profiles.)

    All Replies (9)

    How are you determining that Firefox is running in the background? For example, are you finding Firefox (firefox.exe) in the Windows 10 Task Manager (Ctrl+Shift+Esc) on the Processes tab or the Details tab?

    If you confirm firefox.exe running in the Task Manager, you can right-click > End Process on it to “crash” it so you can start Firefox normally. Does that work?

    I wonder whether you also are missing the usual shortcuts on the Desktop and Start menu. Is that making it more difficult to run Firefox?

    Firefox doesn’t have a built-in behavior to start up with the OS. Perhaps another program is doing it, or a Scheduled Task? An useful program to inspect what happens at start up is this Microsoft utility: https://docs.microsoft.com/en-us/sysinternals/downloads/autoruns

    It has a lot of tabs in its interface, but I suggest focusing on Logon, Explorer, and Scheduled Tasks.

    This post shows students and new users how to turn off running background apps when using Windows 11 to improve performance.

    Windows loads some apps in the background so that they can info, send notifications, receive updates and do other things, even if you’re not using them. If you have a lot of apps running in the background, they can lead to poor performance at times.

    There may be some apps that you will always want to run in the background. But other apps that you don’t use at all should not be allowed to always startup and run when you have no use for them. Windows 11 allows you to disable running background apps, but one at a time.

    When the new Windows 11 is released to everyone, user might see many new features and enhancements that will work great for some while adding some learning challenges for others. Some things and settings have changed so much that folks will have to learn new ways to learn manage Windows.

    The new Windows 11 also has the ability to disable running background apps, the the steps below is going to show you. You can go through your apps list, see which are important and stay running and disable less important apps to improve your system performance.

    Also, students and new users who want to learn how to use Windows, the easiest place to start is Windows 11. Windows 11 is a major release of the Windows NT operating system developed by Microsoft. Windows 11 is the successor to Windows 10 and it’s expected to be released later this year.

    To get started with disabling running background apps in Windows 11, follow the steps below:

    How to turn off running background apps in Windows 11

    To disable apps from running in the background, you do that from the System settings pane.

    Windows 11 has a centralized location for majority of its settings. From system configurations to creating new users and updating Windows, all can be done from its System Settings pane.

    To get to System Settings, you can use the Windows key + i shortcut or click on Start ==> Settings as shown in the image below:

    Alternatively, you can use the search box on the taskbar and search for Settings. Then select to open it.

    Windows Settings pane should look similar to the image below. In Windows Settings, click Apps , select Apps & features on the right pane of your screen shown in the image below.

    On the Apps & features settings pane, under App list, you’ll see apps that are available and running in the background. Some of these are needed, like the weather app – to get timely weather info, Alarms & Clock – to receive important event reminders and others.

    So apps, no so much and can be stopped from running in the background.

    To stop a app from running in the background, locate the apps that you want to stop and click on the ellipsis (three vertical dots) next to them and select ‘Advanced options’ from the menu.

    In the Advanced option, under Background apps permissions, choose to Never run this apps in the background.

    This will prevent the apps from running again in the background. You have to do that one at a time for apps you deemed not important. Keep that apps that are important so that you keep getting accurate and time information from Windows.

    That should do it!

    Conclusion:

    This post showed you how to disable or turn off background running apps in Windows 11. If you find any error above, please use the comment form below to report.

    Published by Richard

    Hi, I’m Richard. In my spare time, I research topics that are interesting and worthwhile for users and students who want to try something new. I, too, am a student and my focus here is to help other students and new users get started with managing Ubuntu Linux, Windows, Content Management Systems (CMS) and others. I try to do my best explaining the topics and detailing the instructions so that anyone can understand. These tutorials may not work in all situations and for all users. However, if you run into trouble, please ask your questions below and I or someone from the community may help you resolve. Thanks for reading and hope you come back.

    Any PowerShell script can be transformed to a real Windows service that runs in the background and starts automatically during your server boot. You can create a Windows service using srvany.exe or instsrv.exe tools (from Windows Server Resource 2003 Kit) which allow you to run the powershell.exe process with a parameter that contains the path to your PS1 script file.

    The main disadvantage of creating a service using this method is that srvany.exe does not control a PowerShell script execution state, and if the app crashes (hangs up), the service does not see it and goes on working. To create a Windows service from a file that contains a PowerShell script, in this article we will use the NSSM (Non-Sucking Service Manager) toolkit, which does not demonstrate the above mentioned disadvantages.

    You can download and install NSSM manually or using Chocolatey. Firstly, install Choco itself:

    Set-ExecutionPolicy Bypass -Scope Process -Force; `
    iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))

    Then install the NSSM package:

    choco install nssm

    In this example, we will track the changes in a specific Active Directory group in real time and inform a security administrator using a pop-up notification and e-mail (the script is given in this article) .

    So, we have a PowerShell code that needs to be saved as a PS1 file. Let’s add an infinite loop that performs a check every minute:

    while($true) <
    #Your PS code
    Start-Sleep –Seconds 60
    >

    You can create a service from a PowerShell script using NSSM directly from PowerShell:

    $NSSMPath = (Get-Command “C:\ps\nssm\win64\nssm.exe”).Source
    $NewServiceName = “CheckADGroup”
    $PoShPath= (Get-Command powershell).Source
    $PoShScriptPath = “C:\ps\CheckADGroup\checkad.ps1”
    $args = ‘-ExecutionPolicy Bypass -NoProfile -File “<0>“‘ -f $PoShScriptPath
    & $NSSMPath install $NewServiceName $PoShPath $args
    & $NSSMPath status $NewServiceName

    Check the service status in PowerShell:

    How to run any program as a background service in windows

    So you have created and started your new Windows service. Make sure that it has appeared in the services management console (services.msc).

    CheckADGroup has appeared, it is configured to start automatically and is currently running. As you can see, your PowerShell script is running inside the nssm.exe process.

    How to run any program as a background service in windows

    In order the service can show notifications in a user session enable the Allow service to interact with desktop option on the Log on tab.

    Start-Service -Name ui0detect

    However, Interactive Services Detection Service has been completely removed from Windows 10 build 1803, and you won’t be able to switch to Session 0. So you won’t see the notification windows displayed under System account.

    You can change the service description using this command:

    & $NSSMPath set $NewServiceName description “Monitoring of AD group changes”

    To remove the service you have created, use the sc delete command or:

    Windows Service Wrapper in a permissive license

    WinSW wraps and manages any application as a Windows service.

    We are actively developing WinSW 3. Please refer to the v2 branch for previous version documentation.

    WinSW 3 can run on Windows platforms with .NET Framework 4.6.1 or later versions installed. For systems without .NET Framework, the project provides native 64-bit and 32-bit executables based on .NET Core.

    More executables can be added upon request.

    .NET Framework system requirements
    Preinstalled since Windows 10, version 1511 and Windows Server 2016.
    Installable since Windows 7 SP1 and Windows Server 2008 R2 SP1.

    .NET 5 system requirements
    Supported since Windows 7 SP1, Windows Server (Core) 2012 R2 and Nano Server, version 1809.

    Latest release and pre-release WinSW binaries are available on GitHub Releases.

    • CI builds are available on Azure Pipelines.
    • NuGet. (2.x)
    • Maven packaging for executables, hosted by the Jenkins project. Binaries are available here. (2.x)

    Use WinSW as a global tool

    1. Take WinSW.exe or WinSW.zip from the distribution.
    2. Write myapp.xml (see the XML config file specification and samples for more details).
    3. Run winsw install myapp.xml [options] to install the service.
    4. Run winsw start myapp.xml to start the service.
    5. Run winsw status myapp.xml to see if your service is up and running.

    Use WinSW as a bundled tool

    1. Take WinSW.exe or WinSW.zip from the distribution, and rename the .exe to your taste (such as myapp.exe).
    2. Write myapp.xml (see the XML config file specification and samples for more details).
    3. Place those two files side by side, because that’s how WinSW discovers its co-related configuration.
    4. Run myapp.exe install [options] to install the service.
    5. Run myapp.exe start to start the service.

    Sample configuration file

    You write the configuration file that defines your service. The example below is a primitive example being used in the Jenkins project:

    The full specification of the configuration file is available here. You can find more samples here.

    WinSW is being managed by the XML configuration file.

    Your renamed WinSW.exe binary also accepts the following commands:

    Command Description
    install Installs the service.
    uninstall Uninstalls the service.
    start Starts the service.
    stop Stops the service.
    restart Stops and then starts the service.
    status Checks the status of the service.
    refresh Refreshes the service properties without reinstallation.
    customize Customizes the wrapper executable.
    dev Experimental commands.
    Command Description
    dev ps Draws the process tree associated with the service.
    dev kill Terminates the service if it has stopped responding.
    dev list Lists services managed by the current executable.

    Most commands require Administrator privileges to execute. WinSW will prompt for UAC in non-elevated sessions.

    • Migrate to WinSW 3.x
    • Configuration:
      • XML configuration file
      • Logging and error reporting
      • Extensions
    • Use cases:
      • Self-restarting services
      • Deferred file operations

    Contributions are welcome! See the contributing guidelines for more information.

    WinSW is licensed under the MIT license.

    About

    A wrapper executable that can run any executable as a Windows service, in a permissive license.

    By: Waseem Patwegar

    If your computer is running slow and taking a while to start, the problem is usually due to unwanted programs automatically starting up with your computer. You will find below the steps to remove startup programs in Windows 10.

    How to run any program as a background service in windows

    Remove Startup Programs in Windows 10

    As soon as you start the computer, some programs have an inherent tendency to automatically start up with the computer and keep running in background.

    Like many users, you may not even be aware of the programs that are automatically launching at startup and unnecessarily using up resources on your device by remaining active in the background.

    Luckily, it is easy to remove startup programs in Windows 10 and add them back to startup, if you happen to change your mind.

    1. Remove Startup Programs Using Settings

    An easy way to remove any App or Programs from Startup is by going to Settings on your computer.

    Go to Settings > Apps and select Startup in the left-pane. In the right-pane, go through the list of Startup Apps and disable the App or Program that you do not want to automatically startup with your computer by moving the toggle to OFF position.

    How to run any program as a background service in windows

    When you restart the computer, you will no longer find the disabled Apps starting up with your device and hiding in background.

    2. Remove Startup Programs Using Task Manager

    Another easy way to prevent unwanted Apps and programs from starting up with the computer is by using Task Manager.

    Right-click on the Start button and select Task Manager in the WinX menu.

    Note: You can also launch Task Manager by right-clicking on the Taskbar and selecting Task Manager.

    On Task Manager screen, switch to Startup tab, right-click on the program that you would like to remove from Startup and click on Disable option in the contextual menu.

    How to run any program as a background service in windows

    Note: If the “Disable” button is greyed out or unavailable, you need to login with you Admin Account.

    You can repeat the above steps to prevent all unnecessary Apps & Programs from Startup.

    3. Remove Apps from Windows Startup Folder

    Another way to prevent unwanted Apps from opening at Startup in Windows 10 is to remove the App from the Startup Folder on your computer.

    Right-click on the Start button and click on Run . In the Run Command window, type shell:startup and click on OK to open the Startup Folder on your computer.

    How to run any program as a background service in windows

    In the Startup Folder, right-click on the Program that you want to prevent from opening at startup and click on Delete .

    How to run any program as a background service in windows

    Once the program is removed from the Startup Folder, it will no longer bother you by starting automatically with your computer.

    In this post, we will Create and Run Background Services using Flutter code in Android. Running background task is one of the most important tasks that we can perform in an Android or iOS app. we can run background task as background service or foreground service. Flutter, being a very Versatile solution for programming, allows us to write platform-specific code to achieve your background tasks! Here is how we do it!

    How to run any program as a background service in windows

    In Android “Orieo” and above versions background services will not work because of Doze mode. To run background service in Orieo and the above versions, we need to run service as a foreground service.

    What is Foreground Service

    We are just using Gmail app and listening to music that is being played by Music Player application. So Music Player is basically using the foreground service to play the music. The foreground service always uses the notification to notify the user and using the notification we can actually interact with the service or the ongoing operation such as pause the music or play the next music.

    So whenever in an app we see a notification that is performing some long running tasks that service is basically the foreground service and Foreground Service is always noticeable to the user that is the user is aware of this ongoing process

    Step up to writing implementation

    Step 1: Create a Flutter application

    Step 2: Go to the android folder and open MainActivity, it will show Open for Editing in Android Studio

    Press on that, it will open an android project in another window.

    Create a class App that extends Application.

    Here we are creating a notification channel to show foreground notification.

    Create AppService class which extends Android Service class and implement our logic what we want to execute

    Step 4: Update Manifest file to declare Application and Service

    Step 5: Write Start Service login in MainActivity

    How to call Android Native Methods from Flutter Code

    To call Android methods from Flutter application we need to create Method Channel.

    Now create a method in main.dart file to call Android Native code

    Now create MethodChannel Interface in MainActivity onCreate() method

    Step 7: call startService() in on Button click event in main dart file

    Step 8: Run Application

    Tags: Flutter Background Services, Background Services in Flutter, Flutter Notifications, How to run Foreground service in flutter

    How to run any program as a background service in windows

    W10 Wallpaper Theme: “Colorful Boats”

    Background apps can keep on munching the bandwidth of your data and the battery life of your Windows 10 device. This is due to the fact that they keep on refreshing in the background for notifications and auto-updates. You might not want to turn them off under normal circumstances, but if you’re out and about and wish to conserve power or simply want to redirect your processing power to some good use other than updating apps then here are four ways to turn off background apps in Windows 10.

    Disable Windows 10 background apps using Settings:

    1. Open the Start menu and type settings in the search bar. Click on the Settings app to proceed.
      How to run any program as a background service in windows
    2. In the Settings menu, click on the Privacy tab with the padlock icon.
      How to run any program as a background service in windows
    3. Scroll down to the Background apps menu in the Privacy tab and click on it to reveal the settings.
      How to run any program as a background service in windows
    4. You can either toggle all the background apps off with the main switch on the top or you can individually disable the apps that consume more power and data.
      How to run any program as a background service in windows
    5. Turning off all the apps would conserve a significant amount of power and bandwidth.
      How to run any program as a background service in windows

    Using Registry Editor:

    1. Open the Start menu and type run in the search bar. Click on the Run app to proceed.
      How to run any program as a background service in windows
    2. Type regedit in the Run command bar and press OK to continue.
      How to run any program as a background service in windows
    3. Windows will prompt you to allow the permission to open the Registry Editor. In the Registry Editor, type the command below in the highlighted space and press Enter.

    How to run any program as a background service in windows

  • Right-click on the BackgroundAccessApplications menu and select New. Click on DWORD (32-bit) Value to create a new entry.
    How to run any program as a background service in windows
  • The new entry would prompt you to rename it. Type in GlobalUserDisabled and click anywhere to save it.
    How to run any program as a background service in windows
  • Right-click on the newly created entry and select Modify.
    How to run any program as a background service in windows
  • Change the Value data: from 0 to 1 and click on OK to save the changes.
    0 = Background Apps Enabled
    1 = Background Apps Disabled
    How to run any program as a background service in windows
  • Disable Windows 10 background apps using Command Prompt:

    1. Open the Start menu and type cmd in the search bar. Right-click on the Command Prompt app and select Run as administrator.
      How to run any program as a background service in windows
    2. Type the command below in the Command Prompt and press Enter to save the changes.

    Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications /v GlobalUserDisabled /t REG_DWORD /d 1 /f

    How to run any program as a background service in windows

    If you wish to revert the changes and enable the background apps again, follow the command below:

    Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications /v GlobalUserDisabled /t REG_DWORD /d 0 /f

    How to run any program as a background service in windows

    Using Windows PowerShell:

    1. Open the Start menu and type powershell in the search bar. Click on the Windows PowerShell app to proceed.
      How to run any program as a background service in windows
    2. Type the command below in the Command Prompt and press Enter to save the changes.

    Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications /v GlobalUserDisabled /t REG_DWORD /d 1 /f

    How to run any program as a background service in windows

    If you wish to revert the changes and enable the background apps again, follow the command below:

    Reg Add HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications /v GlobalUserDisabled /t REG_DWORD /d 0 /f

    How to run any program as a background service in windows

    With these steps, you can disable or enable the background apps in Windows 10 at your discretion. You can either do it individually via Settings or you can turn all the apps on/off via Command Prompt, PowerShell, or Registry Editor in Windows 10.

    It can be frustrating when you have an application that won’t respond. But manually turning off your computer by hitting the power button can damage your computer. Instead of waiting for the application to respond, here’s how to force quit applications on a Windows 10 PC in three ways.

    How to Force Quit on a Windows 10 PC Using Keyboard Shortcuts

    1. Click on the frozen application. You have to select the application, so your computer knows that that’s the one you’re trying to close.
    2. Next, press the Alt + F4 keys at the same time. The F4 key is at the top of your keyboard, while the Alt key is to the left of most keyboards.

    How to run any program as a background service in windows

    If you don’t select a window or application, this shortcut may cause your computer to shut down.

    If this keyboard shortcut doesn’t work on your Windows 10 PC, or your laptop doesn’t have F (function) keys, you can use Task Manager instead.

    How to run any program as a background service in windows

    How to Force Quit on a Windows 10 PC Using Windows Task Manager

    1. Press the Ctrl + Alt + Delete keys at the same time. This brings up a screen that says, “Preparing security settings” before you see a short list of tasks. How to run any program as a background service in windows

    Note: The “delete” key is not the same as the “backspace” key. If you don’t have a delete key, try pressing Ctrl + Shift + Esc to open the Task Manager window.

  • Then select Task Manager from the list. This is the last option on the list. How to run any program as a background service in windows
  • Click on the application you want to force quit. If you don’t see your application in the list, make sure to hit the More details button in the bottom-left corner of the window.
  • Click End task to close the program.
  • How to run any program as a background service in windows

    How to Force Quit an Application using Command Prompt

    1. Click the Windows key + R on your keyboard at the same time. The Windows key is the one with the Windows logo to the left of your space bar. How to run any program as a background service in windows
    2. Then type “cmd” in the search box and hit enter on your keyboard. If this doesn’t work for you, check out our guide on how to open Command Prompt for other methods. How to run any program as a background service in windows
    3. Type “tasklist” into Command Prompt. This brings up all the tasks and programs running on your machine, including the problematic one.
    4. Finally, type “taskkill/im .exe.” Replace with the name of the program you want to force quit. Remember to leave a space between “taskkill/im” and the name of the program.
    5. Finally, hit enter on your keyboard.

    How to run any program as a background service in windows

    For example, if you want to force quit Microsoft Word, you would type “taskkill/im word.exe” and hit enter. Command Prompt will send a confirmation message that the task kill was successful.

    If you are using these shortcuts to force quit applications frequently, it may be time for you to run a health check on your PC. Check out our guide on how to remove malware from your Windows 10 PC here.

    Table of Contents

    In this post I’ll briefly explain how to create and configure a custom Windows Service in C# using Visual Studio 2019. Before we start, it could be wise to quickly summarize what a Windows Service actually is and how it differs from a standard console program or desktop application.

    NOTE: the most recent version of the source code explained in this post is now fully available on GitHub: if you like it, be sure to give it a star!

    Introduction

    In Windows-based operating systems, the term Windows Service refers to a computer program without a user-interface that completely operates in the background. If you know Unix-based environments, you could think of it as a Windows version of a typical Unix daemon. A Windows service must conform to the interface rules and protocols of the Service Control Manager, the kernel component responsible for managing Windows services.

    Once installed, the Windows Service can be configured using the Service Control Manager (services.exe) to start when the operating system is started and run in the background as long as Windows is running; alternatively, they can be started manually or by an event. It’s also possible to manually pause, stop and restart the service.

    Each service can also be configured to run within a context of a specific user or system account: for example, most Windows services that come shipped with the OS are pre-configured to run within the context of three system accounts: System, Network Service and Local Service. Such behaviours allow them to operate even when the machine is unmanaged and/or a standard user is not logged on.

    To get a glimpse of all services running on a Windows machine you can either:

    • Open Control Panel, then navigate to the Administrative Tools and click on the Services icon.
    • Press Window + R to open the Run window, then type services.msc and press ENTER.

    Create the Windows Service Project

    Open Visual Studio 2019 and select Create a new project from the initial dashboard. Type Windows Service into the filter textbox near the top to quickly find out the project template we’re looking for: select the Windows Service (.NET Framework) project template and click Next.

    How to run any program as a background service in windows

    Give the project a name and create it. After a few seconds, you should be prompted with your newly-created project and a blank page showing the Service1.cs file in Design Mode.

    Create an Installer

    The next thing we have to do is to create an Installer, which is the component that will register our Service with the Service Control Manager.

    To do that, right-click on the blank area in the Design View of the Service1.cs file and select Add Installer from the contextual menu, as shown in the screenshot below:

    How to run any program as a background service in windows

    Once you do that, a new ProjectInstaller.cs file will be added to the project. Save everything (CTRL + SHIFT + S), then open the ProjectInstaller.Designer.cs file and take a look at the InitializeComponent() method, which defines some important settings of our service: its name and display name, the account context used to run it, and so on.

    Configure the Installer

    Locate the lines defining the Username and Password (both set to null by default) and add the following line right above them to make our service use the LocalSystem account context:

    Purpose

    The purpose of this posts is to give some hints to improve performance on your Windows PC by removing default background processes that are less necessary.

    Do them only if you have performance issues on your computer.

    Steps

    Step 1. Check applications launch on startup

    There are two folders in Windows 10 for startup:

    • All Users Startup folder
      • It is located in C:\Users\[User Name]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    • Current User Startup folder
      • It is located in C:\Users\[User Name]\AppData\Startup

    The paths may vary according to your language.

    All Users Startup folder is the only one that applies in case there is only one user in the computer. In case of doubt, check both folders.

    All programs listed on these folders are run on startup. If you want to stop it from running, just delete them.

    Step 2. Check processes that are running on the background

    Click Start button and type ‘Task Manager’
    Check ‘Processes’ tab to see all running processes.
    Check ‘Startup’ tab to see all applications open in startup. You can disable these processes.

    Also click Start button and type either ‘msconfig’ or ‘System Configuration’
    Look at tab ‘Start’. You can check or uncheck the service you want. In order to avoid to disable Windows system processes, it is recommended to check first checkbox ‘Hide Microsoft services’.
    If you want that only checked services are run, ensure that ‘Selective start’ is selected on ‘General tab’ tab

    Look at tab ‘Start’. You can open Task Manager from there, that is described in the next step.

    Monitor performance

    Inside Task Manager, check ‘Performance’ tab.

    It gives you an overview of what may be slowing down your computer. It also informs which processes are using more resources in your computer.

    Step 3. Remove background processes

    You may want to disable all processes and services on startup. If you do not know what a process does, research what is the process about before you disable it.

    Below you can find some examples of processes I use to disconnect to improve performance.

    Disable Adobe Acrobat automatic updates

    Open msconfig, go to ‘Process’ tab and uncheck ‘Adobe Acrobat Update Service’ .

    Note: Adobe Acrobat Reader is updated periodically with security updates. If you disconnect automatic updates, remember to check for updates whenever you open the app.

    Disable Microsoft Edge running on the background

    I do not use Edge as my default browser, so I do not want it to run in background.

    Instructions about how to disable it:

    Disable Spotify on startup

    Open Task Manager, go to ‘Startup’ tab, select Spotify and click on ‘Disable’ button

    Disable Steam Client Bootstrapper on startup

    Open Task Manager, go to ‘Startup’ tab, select Spotify and click on ‘Disable’ button

    Account Information

    Share with Your Friends

    How to turn off background apps in Microsoft Windows 10

    How to turn off background apps in Microsoft Windows 10

    Many applications run in the background of Windows 10, but not all of them are necessary.

    Microsoft Windows 10, and all the previous Windows versions that came before it included features, tools, and applications that were nice to have but not absolutely necessary. Applications like Solitaire, Minesweeper, Calculator, etc. all serve an obvious purpose, but if they suddenly disappeared, we could make do without them.

    Must-read Windows coverage

    • Get Microsoft Office for Windows with this lifetime license
    • Kaspersky uncovers fileless malware inside Windows event logs
    • How to find your Windows 11 product key: 3 simple methods
    • How to enable access to god-mode in Microsoft Windows 11

    However, when it comes to resources like hard drive storage space, RAM, and CPU cycles, those small applications can also steal precious computational and performance power from applications that are vital and important. This is particularly true if the application is allowed to have a background presence within the Windows 10 operating system.

    Over the years, TechRepublic has published many articles showing you how to improve performance by turning off background processes and applications in the Windows operating system. Achieving the highest performance in Windows 10 requires similar tweaking.

    This how-to tutorial shows you how to turn off unwanted, unused, or unnecessary applications currently allowed to run in the Windows 10 background.

    Turn off background apps in Windows 10

    A word of warning: Because of the way Windows 10 is installed and constructed, certain applications, for the sake of overall better performance, should be enabled and running in the background at all times. Chose which background applications you would like to turn off carefully and accordingly.

    The list of current background applications running in your Windows 10 background right now are listed under a specific section located in the Privacy Settings.

    1. Click or tap the Start button in the lower left-hand corner of the desktop and click the Settings icon in the navigation bar.
    2. Click the link to the Privacy Settings to reveal a screen similar to Figure A.

    Scroll down the left-hand window’s navigation screen and click the Background Apps menu item when it appears. On this screen, shown in Figure B, you will see a list of applications running in some form or fashion in the Windows 10 background.

    Your first choice is to turn off the background running of applications altogether, but that is typically not the best choice. There are likely to be some applications that you want running in the background–Skype, Edge, OneNote, etc. are all useful productivity apps that will work more efficiently if allowed to have a background presence in Windows 10.

    The remaining background applications in your list will be unique to your PC, but as you can see in the example, there are bound to be several applications running that you simply have no use for. Candy Crush Soda Saga, for example, is installed by Microsoft as part of one of the Update packages. If you don’t play it, and will never play it, turn off its background permission.

    To turn off a background application, click the toggle switch to the off position, as shown in Figure C. Repeat the process for each application you wish to remove from the background of Windows 10.

    When you are satisfied with your choices, just click the exit button to close the Settings screen.

    Keep in mind, that the next time Microsoft installs an Update package (the next one is due to be released in May 2019), you will likely have to perform this performance tweak all over again.

    If a program, application, or app is not responding, you can force quit it. Here’re the steps to force quit an app or program in Windows 10.

    When a program is running either in the foreground or background, if it encounters an unrecoverable error or if there is something wrong with how it functions, it will freeze and not respond. In fact, when a program is not responding, Windows shows the “Not Responding” message on the title bar. Often times, a program that is in a Not Responding state might abuse the system resources like CPU, Memory, and Hard Disk.

    When a program or app is not responding, you either have force quit or close the application. Typically, Windows tries to safely close or recover the program just so that you don’t lose any potential unsaved work or data. However, if Windows is taking too long or if the program is using up all the system resources, you can manually force quit the app. There are a variety of ways to do it. I will show how you can kill a process or force quit an application using task manager and Command Prompt.

    Without further ado, let me show the steps to force quit app or program in Windows 10.

    Steps to Force Quit Program from Task Manager

    The task manager provides a simple way to quickly force quit or kill a not responding program or app. Here are the steps you should follow.

    1. Right-click on the taskbar.
    2. Select the “Task Manager” option from the list to open the Task Manager.
      How to run any program as a background service in windows
    3. Go to the “Processes” tab in the task manager.
    4. Here, find and select the process you want to end. If the process is the Not Responding state, you will see “(Not Responding)” next to the process name.
    5. After selecting the process, click on the “End Task” button.
      How to run any program as a background service in windows
    6. If you see a warning message, click on the “Ok” button.
    7. Close the Task Manager.

    That is all. As soon as you click the End Task button, Windows will force close the program. The effect will not be instant and may take a couple of seconds to quit the application. So, don’t worry if the application did not close immediately.

    Force Quit Application from Command Prompt with TaskKill Command

    You can force quit or kill any process directly from the command line. For that, you need to use the TaskKill command along with the PID (Process ID) or process name of the program or app you want to force quit.

    1. Open the Start menu.
    2. Search for “Command Prompt“.
    3. Right-click on the Command Prompt and select the “Run as administrator” option.
      How to run any program as a background service in windows
    4. After opening the elevated cmd window, type “tasklist” and press Enter.
    5. Note down the process name of the program you want to force quit.
      How to run any program as a background service in windows
    6. Next, execute the below command to force quit the app in Windows 10. Replace “

    ” with the actual program/process name you got with the tasklist command.
    taskkill /im “

    .exe”

  • Close the command window.
  • That is all. As soon as you execute the command, Windows will kill that process or program. Just like with the task manager, the effect will not be instant and may take a couple of seconds to quit the application. So, don’t worry if the application did not close immediately.

    I hope that helps. If you are stuck or need some help, comment below and I will try to help as much as possible. If you like this article, check out how to stop a program without task manager in Windows 10.

    Quite often you might come across a piece of software that you don’t necessarily want sitting in the system tray or showing itself on the taskbar when minimized. It can be set to autorun whenever Windows is booted up, but there is no way to hide it from appearing on the taskbar or tray, not every program that sits in your tray needs to have an icon there. There will probably be no useful option in the program settings, so you’re pretty much stuck with it. If you’re someone who likes to keep their desktop clean and free from clutter, it’s a little frustrating.

    One of the most common ways to close open application windows but keep the program running is by using something known as “boss key” software which was obviously originally designed to hide what’s open on your desktop if your boss is walking past your computer. This can be used to hide games or any programs that are not allowed in the office by simply pressing a configured hot key. Some anti boss key software has other extra features such as being able to hide a program whenever it’s being launched and also the ability to even hide itself.

    Here we list a number of free tools which can help you hide running programs from the system tray and the taskbar. Some will even allow themselves to be hidden from the average user and optionally supply a password to stop tampering.

    1. OuttaSight

    How to run any program as a background service in windows

    Outtasight is certainly a very old tool, and a few of the secondary functions such as hiding the tray and the Start button don’t work in newer operating systems, but the window hiding functions still work well. Something this tool has that even newer programs don’t is a Magic Wand option you can drag onto a window to hide it. Outtasight also has other useful options like hiding itself completely from the average user, hiding windows based on the executable file name and a password protect lock to stop windows being unhidden or the settings window being accessed.

    2. WinRAP

    How to run any program as a background service in windows

    Windows Running Applications Protector (WinRAP) is a program that is able to hide running processes you add to its list, and then only allow them to be unhidden by entering the correct password. In addition to hiding programs, WinRAP can be minimized to the taskbar, system tray or put into stealth mode which will completely hide and password protect it from the average user, with the added option of disabling the Task Manager on the task bar right click to stop the process being killed easily. The Extras menu can quickly hide all or unhide all running applications, or hide the Taskbar and Start button completely. WinRAP is a portable tool that requires the .NET Framework version 2 or above.

    3. Taskbar Hide

    How to run any program as a background service in windows

    Taskbar Hide is a program that as well as being able to hide the open windows from the desktop, it also has a separate tab where you can hide or show any number of icons in the system tray. There’s also options to hide the clock, tray, taskbar and Start button completely. Windows themselves can be completely hidden from view or minimized to the taskbar using the configurable hotkeys, while the Taskbar Hide tray icon can be locked from unauthorized changes by means of a password. Although the program is free to use, it does popup a donate nag window every time it’s launched which can be annoying.

    4. Tray It!

    How to run any program as a background service in windows

    While Tray It! doesn’t have the more useful options for stealthing or hiding traces of program windows such as hotkeys or password protection, it does have the ability to hide or show individual tray icons in the notification area for just about any application that places an icon there. A valuable addition if any running program places an icon in the tray and you don’t want it to show. This is available from the Edit menu -> Shell Icons. Alike windows can be grouped together for bulk hiding and there’s also a profiling option to setup more advanced settings for each window. A handy quick minimize will allow you to right click on the window close, minimize and maximize buttons for instant minimizing. Tray It! is also portable.