首页 > 系统相关 >PowerShell教程 - PowerShell安装与启动(PowerShell Install)

PowerShell教程 - PowerShell安装与启动(PowerShell Install)

时间:2022-08-19 07:44:06浏览次数:87  
标签:教程 https Windows com powershell Install 安装 PowerShell

更新记录
转载请注明出处:https://www.cnblogs.com/cqpanda/p/16589931.html
2022年8月19日 发布。
2022年8月15日 从笔记迁移到博客。

PowerShell安装与启动(PowerShell Install)

安装PowerShell Core

Windows带GUI下安装MSI包方式

选择对应系统下载PowerShell(里面有编译好的安装包和源代码,按自己需求下载)

https://github.com/powershell/powershell

点击安装包即可安装

默认情况下,安装位置为 $env:ProgramFiles\PowerShell<version>

命令行安装

https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-6

安装Windows PowerShell

Windows 10、Windows Server 2016、Windows Server 2019直接开启更新即可

默认情况下,安装位置为 $env:ProgramFiles\WindowsPowerShell<version>

其他系统更新到PowerShell 5.1版本,安装对应的安装包即可

https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-windows-powershell?view=powershell-6

命令行安装PowerShell-ISE

默认情况下,带GUI的Windows自带PowerShell ISE

Add-WindowsFeaturePowerShell-ise

命令行安装旧版本的PowerShell

Add-WindowsFeature powershell–v2 	#安装PowerShell V2

启动PowerShell

在命令行、搜索栏、PowerShell中输入PowerShell即可

标签:教程,https,Windows,com,powershell,Install,安装,PowerShell
From: https://www.cnblogs.com/cqpanda/p/16589931.html

相关文章