找回密码
 register

QQ登录

只需一步,快速开始

查看: 200|回复: 0

[游戏教程] 如何更新Windows自带的PowerShell至最新?

[复制链接]

[游戏教程] 如何更新Windows自带的PowerShell至最新?

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:122
  • 打卡月天数:18
  • 打卡总奖励:121
  • 最近打卡:2025-02-22 14:24:44
Waylee

主题

0

回帖

1万

积分

仙帝

积分
14008
Waylee 2024-8-18 23:39 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
第1步,在大多数文件夹下按下Shift+鼠标右键,点击出现的“在此处打开PowerShell窗口”,输入Host查看版本信息。
1.png
第2步,在PowerShell中输入以下内容,得到默认路径。
Get-Command PowerShell | Format-List

2.png
第3步,打开GitHub - PowerShell/PowerShell,点击Latest。
3.png
第4步,下拉新页面,按需选择安装包,我的是64位的操作系统。
4.png
第5步,安装新PowerShell至第2步v1.0同级C:\Windows\System32\WindowsPowerShell,相似情形请类推。
第6步,打开C:\Windows\System32\WindowsPowerShell,按以下顺序操作:
  • 将文件夹“v1.0”改为“v1.0_old"
  • 将文件夹"7"改为“v1.0”
  • 进入文件夹“v1.0”,将 pwsh.exe 改为 powershell.exe
第7步,重复第1步,在PowerShell中输入Host,发现默认PowerShell版本已更新至最新。

6.png

您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |天天打卡

GMT+8, 2025-2-22 16:45 , Processed in 0.113934 second(s), 8 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表