Share via

What is the netsh command to connect WIFI

Anonymous
2023-03-23T03:55:22+00:00

Currently Netsh support is available to select the SSID and enter the Passphrase in through command prompt for private WiFi's.

NETSH WLAN SET HOSTEDNETWORK MODE=ALLOW SSID=”YOUR WIFI CONNECTION NAME” KEY=”YOUR WIFI CONNECTION PASSWORD”

But I have a case where I need to connect Wi-Fi by entering username and password in "Network and Internet setting".

Looking for Netsh support or shell script to connect Wi-Fi

Windows for home | Windows 10 | Internet and connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-03-23T08:17:16+00:00

    Hi, I'm Elise, and I'd be happy to help with your issue.

    It can be done, but it’s not exactly a simple process.

    You need to create and XML WLAN profile for the correct type of WiFI system you are connection to.

    There are examples of this here:

    https://learn.microsoft.com/en-us/windows/win32...

    Then run the commands:

    netsh wlan add profile filename="file_name.xml"

    netsh wlan connect name="SSID"

    Replacing with the correct xml file name and SSID which you set in the file.

    Please let me know if you need any further assistance.

    Kind Regards,

    Elise

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments