Storing the kubectl binaries in AppData\Roaming on Windows does not work on corporate domains whereby there is usually a group policy preventing save .exe files in that folder. The kubectl binary files in Windows should be saved in AppData\Local instead.
This manifests as an EPERM: operation not permitted error when connecting to a cluster and it attempts to download the kubectl binaries.
Tracking as we have the same issue. We have only specific versions of kubectl and helm available to us via App-V (Virtual Apps) and we are not able to use different versions. Currently we can live with this since in VS Code for example we can set the path to these virtualized applications. We hope soon the same will be possible with Lens, where we can set the path to the executables and not have a Roaming profile... this will also help in making Lens portable.
To solve this issue we will add mechanism to detect the situation when bundled kubectl does not work on app start and add two configuration options to global preferences:
Most helpful comment
To solve this issue we will add mechanism to detect the situation when bundled kubectl does not work on app start and add two configuration options to global preferences: