Skip to content

Access denied in Windows Electron #64

@sr258

Description

@sr258

I use node-machine-id in an Electron app that is packages with ASAR.

I see users who can't get the machine ID in their app. My error log includes this message:

Error: Error while obtaining machine id: Error: Command failed: %windir%\System32\REG.exe QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography /v MachineGuid
Zugriff verweigert (= German for 'access denied')

    at ChildProcess.exithandler (node:child_process:406:12)
    at ChildPr...

I thought that the library doesn't use elevated rights. Is this specific to Electron? How can I work around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions