winget
winget 是优秀的 windows 端的软件管理工具,可以通过 MicrosoftStore 很便捷的安装,只是我在安装 win 的时候使用 Tiny10 安装了个 Windows 10 IoT 企业版 LTSC,没有 MicrosoftStore。以下是解决方案:
运行 powershell 执行以下命令
1 | Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted |
异常处理
如果你的 powershell 运行提示:because running scripts is disabled on this system’需要先解决这个报错。
报错原因是:powershell 中默认的 execution policy 是 restricted。可以使用 Get-ExecutionPolicy 查看其状态。
解决方案:设置 execution policy 为 remotesigned
PowerShell 执行以下命令:
1 | Set-ExecutionPolicy RemoteSigned |