okay i will try to explain, when i type "netsh wlan show profiles" i get an output stating this~
Profiles on interface Wi-Fi:
Group policy profiles (read only)
---------------------------------
<None>
User profiles
-------------
All User Profile : Zask.router
I created a command that took the current context (which is "Zask.router"; only works in administrator mode) and puts it in a variable named %profile%. that command looks like this~
for /f "tokens=4 delims=: " %%A in ('netsh wlan show profiles') do set "profile=%%A
when you type this command you get a output thats similar to this~
Profile Zask.router on interface Wi-Fi:
=======================================================================
Applied: All User Profile
Profile information
-------------------
Version : 1
Type : Wireless LAN
Name : Zask.router
Control options :
Connection mode : Connect automatically
Network broadcast : Connect only if this network is broadcasting
AutoSwitch : Do not switch to other networks
MAC Randomization : Disabled
Connectivity settings
---------------------
Number of SSIDs : 1
SSID name : "Zask.router"
Network type : Infrastructure
Radio type : [ Any Radio Type ]
Vendor extension : Not present
Security settings
-----------------
Authentication : WPA2-Personal
Cipher : CCMP
Security key : Present
Key Content : Pokemonblack
CONTENT ^ PASSWORD ^^^^^^^^^^^^
(LOOK HERE!) |_______________||||||||||||
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX
Cost settings
-------------
Cost : Unrestricted
Congested : No
Approaching Data Limit : No
Over Data Limit : No
Roaming : No
Cost Source : Default
Profile Zask.router on interface Wi-Fi:
=======================================================================
Applied: All User Profile
Profile information
-------------------
Version : 1
Type : Wireless LAN
Name : Zask.router
Control options :
Connection mode : Connect automatically
Network broadcast : Connect only if this network is broadcasting
AutoSwitch : Do not switch to other networks
MAC Randomization : Disabled
Connectivity settings
---------------------
Number of SSIDs : 1
SSID name : "Zask.router"
Network type : Infrastructure
Radio type : [ Any Radio Type ]
Vendor extension : Not present
Security settings
-----------------
Authentication : WPA2-Personal
Cipher : CCMP
Security key : Present
Cost settings
-------------
Cost : Unrestricted
Congested : No
Approaching Data Limit : No
Over Data Limit : No
Roaming : No
Cost Source : Default
Notice the context named Key Content? see where it shows the password in the prompt beside it? how do i grab that password and put it in a variable like when i grabbed the current Profile and put it in a variable from the last command? thank you.
and no this isn't my real password or router profile~ lol that would be dumb