kevva / wifi-password

Get current wifi password
MIT License
617 stars 54 forks source link

Error on Windows 10 #15

Open roccomuso opened 7 years ago

roccomuso commented 7 years ago

I'm having this error on Windows 10, with node v6.6.0:

Error: Promise rejected with value: 'Could not get password'
    at C:\Users\Antonio\AppData\Roaming\npm\node_modules\wifi-password-cli\node_modules\loud-rejection\index.js:27:12
    at Array.forEach (native)
    at EventEmitter.<anonymous> (C:\Users\Antonio\AppData\Roaming\npm\node_modules\wifi-password-cli\node_modules\loud-rejection\index.js:23:24)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at emit (C:\Users\Antonio\AppData\Roaming\npm\node_modules\wifi-password-cli\node_modules\signal-exit\index.js:68:11)
    at processEmit [as emit] (C:\Users\Antonio\AppData\Roaming\npm\node_modules\wifi-password-cli\node_modules\signal-exit\index.js:141:5)
cktang88 commented 7 years ago

basically the script just executes wlan show profile name=[SSID] key=clear on Win10

tyeth commented 6 years ago

Prepend that command with

netsh