Error 126: cannot start service - Windows Modules Installer

ThierryS

New member
Local time
10:20 AM
Messages
6
Location
Paris, France
Hi All,

I've been having a problem installing Windows updates and certain other software packages lately.

It seems the Windows Module Installer Module cannot be started, as below - so I've taken the liberty to push diagnostics a bit further, all below as well. Apologies for the French, let me know if you need anything translated. The last step is ICACLS command saying
"c:\windows\CSC\trustedinstaller.*: Access Denied"
... and stopping there.

Any help would be greatly appreciated from this side of the pond!

Thank you in advance,

Kind regards,

Thierry



Code:
C:\Windows\System32>net start trustedinstaller
Le service Programme d'installation pour les modules Windows démarre.
Le service Programme d'installation pour les modules Windows n'a pas pu être lan
cé.

Une erreur système s'est produite.

L'erreur système 126 s'est produite.

Le module spécifié est introuvable.


C:\Windows\System32>sc qc trustedinstaller
[SC] QueryServiceConfig réussite(s)

SERVICE_NAME: trustedinstaller
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : C:\Windows\servicing\TrustedInstaller.exe
        LOAD_ORDER_GROUP   : ProfSvc_Group
        TAG                : 0
        DISPLAY_NAME       : Programme d'installation pour les modules Windows
        DEPENDENCIES       :
        SERVICE_START_NAME : localSystem

C:\Windows\System32>dir c:\windows\trustedinstaller.* /S
 Le volume dans le lecteur C n'a pas de nom.
 Le numéro de série du volume est FABE-83BD

 Répertoire de c:\windows\servicing

20/11/2010  15:25           194 048 TrustedInstaller.exe
               1 fichier(s)          194 048 octets

 Répertoire de c:\windows\servicing\fr-FR

20/11/2010  15:01             7 680 TrustedInstaller.exe.mui
               1 fichier(s)            7 680 octets

 Répertoire de c:\windows\winsxs\amd64_microsoft-windows-t..installer.resources_
31bf3856ad364e35_6.1.7600.16385_fr-fr_65a25b82cf55a422

04/08/2010  18:12             7 168 TrustedInstaller.exe.mui
               1 fichier(s)            7 168 octets

 Répertoire de c:\windows\winsxs\amd64_microsoft-windows-t..installer.resources_
31bf3856ad364e35_6.1.7601.17514_fr-fr_67d36f4acc4427bc

20/11/2010  15:01             7 680 TrustedInstaller.exe.mui
               1 fichier(s)            7 680 octets

 Répertoire de c:\windows\winsxs\amd64_microsoft-windows-trustedinstaller_31bf38
56ad364e35_6.1.7600.16385_none_ed02252b66d7bca2

14/07/2009  03:39           194 048 TrustedInstaller.exe
               1 fichier(s)          194 048 octets

 Répertoire de c:\windows\winsxs\amd64_microsoft-windows-trustedinstaller_31bf38
56ad364e35_6.1.7601.17514_none_ef3338f363c6403c

20/11/2010  15:25           194 048 TrustedInstaller.exe
               1 fichier(s)          194 048 octets

     Total des fichiers listés :
               6 fichier(s)          604 672 octets
               0 Rép(s)  11 966 898 176 octets libres

C:\Windows\System32>icacls c:\windows\trustedinstaller.* /T
c:\windows\CSC\trustedinstaller.*: Accès refusé.
0 fichiers correctement traités ; échec du traitement de 1 fichiers

C:\Windows\System32>
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony
OS
Windows 7 Professional SP1 64bit
CPU
Intel Core i5
Memory
8 GB
Hard Drives
128 GB SSD
That error is common - and nothing to worry about.
Use these commands instead...

DIR C:\Windows\servicing\TrustedInstaller.* /S
ICACLS C:\Windows\servicing\TrustedInstaller.* /T
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Thank you Noel, the result is below. So those "read & execute" permissions look normal - is that error 126 due to something else then?

Best regards,

Thierry


Code:
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Windows\system32>DIR C:\Windows\servicing\TrustedInstaller.* /S
 Le volume dans le lecteur C n'a pas de nom.
 Le numéro de série du volume est FABE-83BD

 Répertoire de C:\Windows\servicing

20/11/2010  15:25           194 048 TrustedInstaller.exe
               1 fichier(s)          194 048 octets

 Répertoire de C:\Windows\servicing\fr-FR

20/11/2010  15:01             7 680 TrustedInstaller.exe.mui
               1 fichier(s)            7 680 octets

     Total des fichiers listés :
               2 fichier(s)          201 728 octets
               0 Rép(s)  10 497 679 360 octets libres

C:\Windows\system32>ICACLS C:\Windows\servicing\TrustedInstaller.* /T
C:\Windows\servicing\TrustedInstaller.exe NT SERVICE\TrustedInstaller:(F)
                                          BUILTIN\Administrateurs:(RX)
                                          AUTORITE NT\Système:(RX)
                                          BUILTIN\Utilisateurs:(RX)

C:\Windows\servicing\fr-FR\TrustedInstaller.exe.mui NT SERVICE\TrustedInstaller:
(F)
                                                    BUILTIN\Administrateurs:(RX)

                                                    AUTORITE NT\Système:(RX)
                                                    BUILTIN\Utilisateurs:(RX)

2 fichiers correctement traités ; échec du traitement de 0 fichiers

C:\Windows\system32>
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony
OS
Windows 7 Professional SP1 64bit
CPU
Intel Core i5
Memory
8 GB
Hard Drives
128 GB SSD
WMI frequently cannot start because other services are failing to start as well - check your Event Viewer and see if there's any signs of that (or post the Application and System .evtx files)
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Here you go: System and Application events from yesterday from 16:00 to 16:59 CET:
- An unsuccessful attempt to launch Windows Module Installer at 16:15:59 CET
- A "WindowsUpdateFailure" event at 16:16:34 CET

Many thanks,

Thierry

(had to rename to .log to get the uploader to accept the files)
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony
OS
Windows 7 Professional SP1 64bit
CPU
Intel Core i5
Memory
8 GB
Hard Drives
128 GB SSD
It looks to me like this is the problem....
Code:
Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface.  hr = 0x80070005, Accès refusé.

. This is often caused by incorrect security settings in either the writer or requestor process. 

Opération :

   Données du rédacteur en cours de collecte

Contexte :

   ID de classe du rédacteur: {e8132975-6f93-4464-a53e-1050253ae220}

   Nom du rédacteur: System Writer

   ID d’instance du rédacteur: {92273446-3268-402c-bf6e-0545aef8919e}

Event ID 8194 refers.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Ok, so I've stopped ShadowBackup, a third-party application, and indeed those VSS events stop occurring, as confirmed in Event Viewer.

After that I stopped the VSS service, as below, and tried to start TrustedInstaller, which still refuses to start with the same 126 error code.

Anything else I should try?

Many thanks,

Thierry


Code:
C:\Windows\system32>sc stop vss

SERVICE_NAME: vss
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

C:\Windows\system32>sc queryex vss

SERVICE_NAME: vss
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 0
        FLAGS              :

C:\Windows\system32>sc queryex trustedinstaller

SERVICE_NAME: trustedinstaller
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 126  (0x7e)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 0
        FLAGS              :

C:\Windows\system32>sc start trustedinstaller

SERVICE_NAME: trustedinstaller
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 4168
        FLAGS              :

C:\Windows\system32>sc queryex trustedinstaller

SERVICE_NAME: trustedinstaller
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 126  (0x7e)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 0
        FLAGS              :

C:\Windows\system32>
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony
OS
Windows 7 Professional SP1 64bit
CPU
Intel Core i5
Memory
8 GB
Hard Drives
128 GB SSD

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Hi Noel,

Adding the Version subkey to Component Servicing did the trick, now TrustedInstaller is happy again - many thanks for all the support, and pointing me in the right direction, much appreciated!

Now 45 updates installed, but I am running into an IE9 update 94C8 error... I'll start a different thread if I can't manage to fix that myself after reading the abundant literature on the topic.

Many thanks once again, and I owe you a beer (or a glass of wine) next time you visit Paris.

Best regards,

Thierry
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Sony
OS
Windows 7 Professional SP1 64bit
CPU
Intel Core i5
Memory
8 GB
Hard Drives
128 GB SSD
Great!
Well done.

Good luck - I'll have to forgo the beer, unless you come to Wales... Can't afford the trip any more, and the company certainly ain't gonna pay for it :( .
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus K52F or Lenovo B51-80
OS
Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
CPU
i3 370M/i7 6500U
Motherboard
Asus/Lenovo
Memory
8GB - finally :)/8GB
Graphics Card(s)
it's an i3, dude!/dual Intel&nVidia
Sound Card
onboard
Monitor(s) Displays
15.6" built-in
Screen Resolution
1366x768/1920x1080
Hard Drives
750GB Seagate internal
Sundry external drives attached to other computers on the local network
1TB SSD on the Lenovo
PSU
n/a
Internet Speed
as much as I can get - usually on a dongle/phone, so <1MB/s
Antivirus
MSE/Defender
Browser
IE11/12/Edge/Chrome/FF(if I must)
Back
Top