Run only one program on Windows at startup without any other services

10

4

I have an old laptop and I want to use it only to display my microscope!

Laptop running Windows 7 starter.

What I want to do is to disable all services and only make it run the program of my microscope, so when I start my laptop it will boot into windows but only run a specific program automatically without any other services running in the background even explorer!

Narzan Q.

Posted 2017-06-23T21:33:16.527

Reputation: 723

6

What you want is call Kiosk Mode. You should also look at Black Viper’s Windows 7 Service Pack 1 Service Configurations to see what services are safe to disable.

– DavidPostill – 2017-06-23T21:38:02.327

2Try Linux, Windows is heavy. – ferit – 2017-06-24T08:17:27.510

@Saibot For a Windows program Wine will have to be used, and because of... efficient development techniques it's really hard to ensure compatibility - the Wine developers have done an excellent job but it is a job that is by no means finished. – wizzwizz4 – 2017-06-24T12:58:40.050

@wizzwizz4 assuming portability, of course. – ferit – 2017-06-24T13:52:20.057

@wizzwizz4 if the microscope/interface isn't totally proprietary, there would most probably be Linux software for the task with no need for wine. – Joe – 2017-06-27T03:12:41.463

@Joe You're assuming that it's widespread hardware - very little has been published for more obscure systems. – wizzwizz4 – 2017-06-27T16:16:24.377

Answers

11

Modify the following registry value to start a program other than Windows Explorer.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\shell

As for the services, use the services.msc.

Warning: You may run into various issues without many of the services running.

Steven

Posted 2017-06-23T21:33:16.527

Reputation: 24 804

Okay I disabled most services, and changed explorer to my program, but it doesn't start at the begging, I tried to access file explorer to run my app, it works perfectly without any problem, my only problem now that I must go to task manege to start explorer.exe to access my program! is there any solution for this!? – Narzan Q. – 2017-06-23T22:25:43.140

Rather than starting explorer.exe, click Browse and navigate to your program. – Steven – 2017-06-23T22:27:09.923

Sorry I mean I used Browse to navigate to my program, it works but is there any auto solution! i changed shell from explorer.exe to "amp.exe" the name of my app! is that correct or I'm doing something wrong maybe! because I tried to access amp.exe from RUN but that dosnt work! – Narzan Q. – 2017-06-23T22:31:54.477

5You likely will have to put in the full path, something like:"C:\Program Files\<program company name>\amp.exe" – Steven – 2017-06-23T22:33:28.207

Wow that's work exactly like what I want :D – Narzan Q. – 2017-06-23T22:39:42.853

you try win+R and then msconfig ? – pery mimon – 2017-07-14T09:55:23.807

6

You cannot disable all services. Many services are critical to the basic functions of your system, including Explorer.

The good news is that the services that CAN be disabled are easy to disable.

Open Services and go to each one in turn and attempt to set its startup state to Disabled.

Restart your computer frequently to make sure the computer loads OK with the new batch of disabled services.

Repeat until you've cleaned everything out that can be cleaned out.

A good resource for determined services that CAN be disabled is BlackViper: http://www.blackviper.com/service-configurations/black-vipers-windows-7-service-pack-1-service-configurations/

A lot of careful research and feedback goes into BlackViper, and the advice there can save you lots of effort and pain.

music2myear

Posted 2017-06-23T21:33:16.527

Reputation: 34 957

1I disagree with sentence You cannot disable all services. Maybe it should sound You should not disable all services. Technically, you can disable all services and if you do that, the UI still works – with all limitations as consequences, but works. If OP's exe will work under these conditions, then fine for him. (Note: I am not fan of disabling all services, this is just a comment discussing the topic.) – miroxlav – 2017-06-24T14:54:58.980

1Explorer isn't a service. – Jamie Hanrahan – 2017-06-24T16:03:11.637

@miroxlav, no, you cannot disable all services is the correct statement. There are services that Windows does not, by default, allow you to change the state of or disable. These are not exactly the same on every computer or configuration. But on each Windows computer there will be services that you are blocked from disabling. – music2myear – 2017-06-26T23:52:51.743

@music2myear – you can easily disable also those blocked services, if you know how. For example, Process Explorer allows immediate access to privilege control of each service. And that is only one step away from disabling it. This is why I wrote that "technically it is possible" and I have seen the computer running with zero services enabled. Fun fact: the user hardly noticed it except the fact his internet connection was not working. :) – miroxlav – 2017-06-27T12:00:39.153

3

Most of the services (if not all) can be controlled via value Start under registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<service name> Please note that CurrentControlSet in aforementioned registry key is link to either ControlSet001 or ControlSet002 as described here.

Now the value "Start" can have values from 0 to 4 (sc config for reference):

  • 0 - boot - Specifies a device driver that is loaded by the boot loader.
  • 1 - system - Specifies a device driver that is started during kernel initialization.
  • 2 - auto - Specifies a service that automatically starts each time the computer is restarted and runs even if no one logs on to the computer.
  • 3 - demand (manual) - Specifies a service that must be started manually. This is the default value if start= is not specified.
  • 4 - disabled - Specifies a service that cannot be started. To start a disabled service, change the start type to some other value.

While going to that mad service disabling spree, first check service start value and mark it down, prepare yourself with alternative booting media (any Windows installation media will do) in case system becomes unbootable due to necessary service disabled.

If shit happens, boot from external media, switch to console (shift+F10 IIRC) > regedit > point to HKEY_LOCAL_MACHINE and "load hive" > <systemdrive>:\Windows\System32\config\SYSTEM. Now locate under loaded hive ControlSet001\Services and you can undo previous mistakes with setting Start values to defaults.

Here is a little batch script to list all services "default" (default until modified by user, which then becomes "default") values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services:

@echo off
setlocal enabledelayedexpansion
set KEY=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
for /f "tokens=5 delims=\" %%a in ('reg query !KEY! /s /v "start"') do     (
set SERVICE=%%a
for /f "tokens=3" %%b in ('reg query !KEY!\!SERVICE! /v "start" ^| findstr /i "start"') do (
        echo !KEY!\!SERVICE! - "Start" %%d
    )
)
endlocal

Paste the above code to defaultservices.bat and run it as defaultservices.bat > defaultservices.txt to generate text file, which can be utilized later to see service default values.

African Networks

Posted 2017-06-23T21:33:16.527

Reputation: 183