# Open AdminNeo fails on Windows when PowerShell 7 is installed

**URL:** <https://community.localwp.com/t/open-adminneo-fails-on-windows-when-powershell-7-is-installed/52081>\
**Category:** Bugs\
**Created:** [April 13, 2026, 9:57am UTC](https://community.localwp.com/t/open-adminneo-fails-on-windows-when-powershell-7-is-installed/52081 "2026-04-13T09:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcampbell-ls](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@fcampbell-ls](https://community.localwp.com/u/fcampbell-ls)\
**Post date:** [April 13, 2026, 9:57am UTC](https://community.localwp.com/t/open-adminneo-fails-on-windows-when-powershell-7-is-installed/52081/1 "2026-04-13T09:57:55Z")

</div>

# 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:

```bash
"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**

```javascript
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”}

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [April 13, 2026, 9:46pm UTC](https://community.localwp.com/t/open-adminneo-fails-on-windows-when-powershell-7-is-installed/52081/2 "2026-04-13T21:46:53Z")

</div>

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