PowerShell升级
1.查看版本
$PSVersionTable
![在这里插入图片描述](https://img-blog.csdnimg.cn/a41bd022f6be4c5b8d2565e3dd395223.png)
2.搜索软件包
winget search Microsoft.PowerShell
![在这里插入图片描述](https://img-blog.csdnimg.cn/2348b5509f0843058704ce33ffa3b699.png)
3.使用 id 参数安装 PowerShell 或 PowerShell 预览版
winget install --id Microsoft.Powershell --source winget
winget install --id Microsoft.Powershell.Preview --source winget
![在这里插入图片描述](https://img-blog.csdnimg.cn/3c3d93e2028d4e1d9ff83bd7fd39c4e5.png)
![在这里插入图片描述](https://img-blog.csdnimg.cn/7d703352ffd0447f9128e6f2098569e7.png)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)