admin管理员组

文章数量:1638753

1.Windows搜索框搜索cmd(命令提示符):

2.运行winget:

若无法运行,去Micorsoft Store里重新下载或升级winget。

3.使用winget搜索最新版本的Powershell:

winget search Microsoft.PowerShell

同意所有源协议条款,输入Y:

显示最新的Powershell及powershell预览版:

4.使用id参数安装powershell或powershell预览版:

winget install --id Microsoft.Powershell --source winget
winget install --id Microsoft.Powershell.Preview --source winget

成功安装powershell:

本文标签: WindowsWingetpowershell