Open thondchen opened 7 years ago
use power shell to run iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex will fail caz restricted rule.
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
solution: PS C:\WINDOWS\system32> Get-ExecutionPolicy Restricted PS C:\WINDOWS\system32> Get-ExecutionPolicy -Scope CurrentUser Undefined PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned
use power shell to run
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
will fail caz restricted rule.solution: PS C:\WINDOWS\system32> Get-ExecutionPolicy Restricted PS C:\WINDOWS\system32> Get-ExecutionPolicy -Scope CurrentUser Undefined PS C:\WINDOWS\system32> Set-ExecutionPolicy RemoteSigned