'choco' command not recognized when run as administrator on Windows : <p>I installed Chocolatey as per the instructions on the website (<a href="https://chocolatey.org/install" rel="noreferrer">https://chocolatey.org/install</a>).</p>

<p>The 'choco' command works fine when I run it normally on cmd but returns the following error when run as administrator:</p>

<pre><code>C:\WINDOWS\system32&gt;choco install -y wget 7zip.commandline
'choco' is not recognized as an internal or external command,
operable program or batch file.
</code></pre>

<p>The install <code>choco install -y wget 7zip.commandline</code> fails if not run as administrator.</p>

<p>How do I fix 'not recognized' error in admin cmd?</p>
