Skip to content

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

@geetanshjain

Description

@geetanshjain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions