coreybutler / coreybutler/node-windows

isAdminUser unreliable

Open
#91 6 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.