and when upgrading to Chocolatey to version 2, I got this error:
Invalid argument --localonly. This argument has been removed from the list command and cannot be used.
The upgrade broke a small batch file choco-list-installed.bat
that I run on a lot of systems including both old and new chocolatey installations some dating back to before 2015 having this simple content:
choco list --localonly