Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change wireless network security key CMD or VBScript

to see wireless network security key we can use this in cmd :

netsh wlan show profile name="WIRELESS NAME" key=clear

and to add profile we can use this :

netsh wlan add profile filename=D:\file.xml

I need a command to change the password for Wireless Networks profile

is there any scripting whay to do this ? ( vbsript - cmd - powershell )

like image 262
Criss Avatar asked Jan 23 '14 19:01

Criss


People also ask

Is a network security key the same as a password?

A network security key is a password you use to connect to a Wi-Fi network. It also has other names like “WPA key” or “wireless security key”. A network security key establishes a secure connection between your device and the Wi-Fi router.


1 Answers

You could use the netsh command for this purpose too.

If you run the following command, you can see the profile parameters you can set uting the netsh command:

netsh wlan set profileparameter /?

You'd use the name to identify, just as in your sample, and I guess you should use the keyMaterial parameter to set the password.

like image 125
Robert Westerlund Avatar answered Oct 03 '22 22:10

Robert Westerlund