Open AdminNeo fails on Windows when PowerShell 7 is installed

Bug Summary

Clicking “Open AdminNeo” on any site repeatedly fails with an EINVAL error. The database browser never opens. The site itself runs normally.

Steps to reproduce

  1. Install PowerShell 7 on Windows

  2. Open Local and start any site

  3. Click “Open AdminNeo” in the database section

  4. AdminNeo fails to open — the following error appears in the Local log:

"code":"EINVAL","errno":-4071,"path":"C:\\Users\\FraserCampbell\\Welcome to PowerShell!\nC:\\Users\\FraserCampbell\\AppData\\Local\\Temp\\local-adminer-oxP-PcqqO-389611","syscall":"mkdir"

Environment Info

  • Windows 10 (build 26200) x64

  • MySQL 8.0.35

  • Local 10.0.0+6907

  • PowerShell 7.6.0 installed alongside Windows PowerShell 5.x

Root cause (identified)

main/_helpers/getWin32FullPath.js inside app.asar spawns powershell.exe to resolve the temp directory path, but passes only a minimal environment (missing process.env). This causes PowerShell to print its “Welcome to PowerShell!” banner to stdout, which gets captured and prepended to the actual path, producing an invalid directory name containing a newline character. This affects any Windows user with PowerShell 7 installed.

Suggested fix

const result = execFileSync('powershell.exe', ['-NoLogo', '-NonInteractive', '-Command', '(Get-Item -LiteralPath $Env:literalPath).FullName'], {
    env: { ...process.env, literalPath },
}).toString().trim();
return result.split('\n').pop().trim();

Supporting info Local log attached.

Supporting info

{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:36.259554Z 0 [System] [MY-010116] [Server] %%userDataPath%%\lightning-services\mysql-8.0.35+4\bin\win64\bin\mysqld.exe (mysqld 8.0.35) starting as process XXXXX”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:36.249Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:36.260510Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:36.250Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:36.266393Z 0 [Warning] [MY-013907] [InnoDB] Deprecated configuration parameters innodb_log_file_size and/or innodb_log_files_in_group have been used to compute innodb_redo_log_capacity=201326592. Please use innodb_redo_log_capacity instead.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:36.253Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:36.268416Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:36.255Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:37.324545Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:37.311Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:37.623125Z 0 [System] [MY-010229] [Server] Starting XA crash recovery…”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:37.610Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:37.627457Z 0 [System] [MY-010232] [Server] XA crash recovery finished.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:37.614Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:37.715290Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:37.702Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:37.715353Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:37.702Z”}
{“class”:“Process”,“level”:“warn”,“message”:“2026-04-13T09:44:37.749263Z 0 [System] [MY-010931] [Server] %%userDataPath%%\lightning-services\mysql-8.0.35+4\bin\win64\bin\mysqld.exe: ready for connections. Version: ‘8.0.35’ socket: ‘’ port: 10007 MySQL Community Server - GPL.”,“process”:“mysql”,“thread”:“main”,“timestamp”:“2026-04-13T09:44:37.736Z”}
{“eventId”:“XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”,“level”:“warn”,“message”:“Unhandled Rejection.”,“p”:{},“reason”:{“code”:“EINVAL”,“errno”:-4071,“path”:“C:\Users\XXXXXXXX\Welcome to PowerShell!\nC:\Users\XXXXXXXX\AppData\Local\Temp\local-adminer-XXXXXXXXXX-XXXXXX”,“syscall”:“mkdir”},“thread”:“main”,“timestamp”:“2026-04-13T09:44:42.803Z”}
{“level”:“warn”,“message”:“Could not retrieve Windows edition.”,“thread”:“main”,“timestamp”:“2026-04-13T09:46:44.947Z”}

Thank you for spinning this up, and providing such great details here @fcampbell-ls! I’ve flagged this with our engineering team.