The module cannot work on Windows if the Windows is running in some languages, e.g. Chinese.
The problem is that netsh outputs differently under different codepages. On Chinese Windows, the default codepage is 936. Only after I run chcp 65001 can I get the proper password. Without that, I get an error Error: Could not get password.
I think it should be documented in README or somewhere.
The module cannot work on Windows if the Windows is running in some languages, e.g. Chinese.
The problem is that
netsh
outputs differently under different codepages. On Chinese Windows, the default codepage is 936. Only after I runchcp 65001
can I get the proper password. Without that, I get an errorError: Could not get password
.I think it should be documented in README or somewhere.