friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
398 stars 161 forks source link

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

Open geetanshjain opened 3 years ago

geetanshjain commented 3 years ago

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

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