Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regList.wsf(0, 2) (null): 0x80041002 #117

Closed
GorlikItsMe opened this issue Jun 5, 2023 · 3 comments
Closed

regList.wsf(0, 2) (null): 0x80041002 #117

GorlikItsMe opened this issue Jun 5, 2023 · 3 comments

Comments

@GorlikItsMe
Copy link

Electron app error

[2023-06-05 06:29:27.649] [error]                             Unhandled Exception Error: Command failed: c:\windows\system32\cscript.exe //Nologo C:\Users\PC\AppData\Local\Programs\My App\resources\vbs\regList.wsf A HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{key}_is1
C:\Users\PC\AppData\Local\Programs\My App\resources\vbs\regList.wsf(0, 2) (null): 0x80041002


    at ChildProcess.exithandler (node:child_process:407:12)
    at ChildProcess.emit (node:events:527:28)
    at ChildProcess.emit (node:domain:475:12)
    at maybeClose (node:internal/child_process:1092:16)
    at Socket.<anonymous> (node:internal/child_process:451:11)
    at Socket.emit (node:events:527:28)
    at Socket.emit (node:domain:475:12)
    at Pipe.<anonymous> (node:net:709:12)

When i try run this via shell

C:\Users\PC>c:\windows\system32\cscript.exe "C:\Users\PC\AppData\Local\Programs\My App\resources\vbs\regList.wsf" A HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{key}_is1
Microsoft (R) Windows Script Host versión 5.812
Copyright (C) Microsoft Corporation. Reservados todos los derechos.

C:\Users\PC\AppData\Local\Programs\My App\resources\vbs\regList.wsf(0, 2) (null): 0x80041002

Environment:
Windows 10.0.19045 x64

@kessler
Copy link
Owner

kessler commented Jul 14, 2023

is your shell running in elevation? (as administrator)

@JesuisTong
Copy link

JesuisTong commented Oct 7, 2023

My error message is:

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. 

When i exec regList.wsf manually(of course in elevation).

Is there any service must start to run wsf scripts?

@kessler
Copy link
Owner

kessler commented Oct 8, 2023

most likely it's Winmgmt service: https://learn.microsoft.com/en-us/windows/win32/wmisdk/winmgmt

@kessler kessler closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants