[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
安装不上就注意两个点:
- 确保是管理员权限
- 删除
C:\ProgameData\chocolatey,否则会显示已经安装过不给你装