node-wifi icon indicating copy to clipboard operation
node-wifi copied to clipboard

Windows: not able to connect to network due to non-admin rights on PC

Open geetanshjain opened this issue 3 years ago • 0 comments

Expected Behavior

In Windows, when we try to connect to a networks, the connection fails if the user don't have admin privileges on the laptop. nodeWifiConnect.xml which is a temporary fails to create without admin rights. It should be created in a temporary location as its already a temp file and should work for non-admin users also.

Current Behavior

In Windows, when we try to connect to a networks, the connection fails if the user don't have admin privileges on the laptop. nodeWifiConnect.xml which is a temporary fails to create without admin rights.

image

Affected features

  • [ ] node API
  • [ ] cli

Possible Solution

nodeWifiConnect.xml temporary file should be created at a temporary solution so that non admin users can also connect to the network without need to run as an administrator.

Steps to Reproduce (for bugs)

  1. Run the connectWindows API without the admin rights.
  2. Connection will fail with the attached message (EPERM)

Context

Your Environment

  • OS: Microsoft windows 10
  • node-wifi version: 2.0.14
  • wifi card: Intel(R) Dual Band Wireless-AC 8265

geetanshjain avatar Jun 17 '21 05:06 geetanshjain