coreybutler / coreybutler/node-windows
isAdminUser unreliable
Open
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 368
- PR merge metrics
- No merged PRs in 30d
Description
When I call `isAdminUser`, it will fail the first `NET SESSION` call and re-attempt to call it with `elevate`. I then deny the elevation at the UAC prompt, but `isAdminUser` will still return `true`.
I would assume that exit codes don't travel through the 3 layers of indirection caused by `.cmd` → `start` → `.vbs`
Contributor guide
Assessment
This issue has not been assessed yet.