<p>When I try to run any kubectl command including kubectl version, I get a pop-up saying &quot;This app can't run on your PC, To find a version for your PC, check with the software publisher&quot; when this is closed, the terminal shows &quot;access denied&quot;</p>
<p>The weird thing is, when I run the &quot;kubectl version&quot; command in the directory where I have downloaded kubectl.exe, it works fine.</p>
<p>I have even added this path to my PATH variables.</p>

Vineet Kekatpure
<p>thank you for the answer, <a href="https://stackoverflow.com/a/74862706/12332734">@rally</a></p>
<p>apparently, in my machine, it was an issue of administrative rights during installation. My workplace's IT added the permission and it worked for me.</p>
<p>Adding this answer here so that if anyone else comes across this problem they can try this solution as well.</p>
