'choco' command not recognized when run as administrator on Windows
问题 I installed Chocolatey as per the instructions on the website (https://chocolatey.org/install). The 'choco' command works fine when I run it normally on cmd but returns the following error when run as administrator: C:\WINDOWS\system32>choco install -y wget 7zip.commandline 'choco' is not recognized as an internal or external command, operable program or batch file. The install choco install -y wget 7zip.commandline fails if not run as administrator. How do I fix 'not recognized' error in