微慑信息网

[OS] win10下 windows终端安装

项目地址:https://github.com/microsoft/terminal/releases

下载安装:

 

 

添加到右键:

参考:https://blog.csdn.net/jiunian_2761/article/details/121367407

 

但是无法安装,报错:

.\install.ps1 : 无法运行脚本“install.ps1”,因为该脚本包含用于 Windows PowerShell 6.0 的 "#requires" 语句。该脚本需要
使用的 Windows PowerShell 版本与当前运行的 Windows PowerShell 版本 5.1.19041.1682 不匹配。
所在位置 行:1 字符: 1
+ .\install.ps1
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (install.ps1:String) [], ScriptRequiresException
    + FullyQualifiedErrorId : ScriptRequiresUnmatchedPSVersion

升级powershell 7 ,地址:https://docs.microsoft.com/zh-cn/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.2

安装文件:

 

 

然后使用管理员打开powershell,输入:

Set-ExecutionPolicy Bypass -Scope Process -Force; 
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/qianfanguojin/windowsterminal-menu/master/install.ps1'))

即可

本文标题:[OS] win10下 windows终端安装
本文链接:
(转载请附上本文链接)
https://vulsee.com/archives/vulsee_2022/0623_16497.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » [OS] win10下 windows终端安装
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们