解除安裝 PowerShell 2

解除安裝 PowerShell 2

我最近安裝了 PowerShell 6:

http://github.com/PowerShell/PowerShell/releases

但是我注意到 PowerShell 現在安裝到:

C:\Program Files\PowerShell

雖然我仍然保留版本 2:

C:\Windows\system32\WindowsPowerShell

如果可能的話,我想刪除這個舊版本。我檢查了這些:

  1. 程序和特點
  2. 已安裝的更新
  3. Windows功能

但沒有看到 PowerShell 的選項。

答案1

我有點猶豫是否要發表答案,因為其中一些將是我的意見。值得注意的是,從 Windows 7 (Server 2008 R2) 開始,Powershell 已成為作業系統的一個組成部分。目前,Powershell 本質上有兩個同時開發的軌道。 Windows 特定版本的最新版本號為 5.1,跨平台版本為版本 6。 Powershell 6 是微軟計畫前進的方向。

現在我們進入意見部分。現在我所做的工作中至少缺少powershell 6。 5 中存在的 cmdlet 要么在 6 中不存在,要么它們所在的模組與 5 不相容。

要直接回答你的問題,你不能只是Windows 電腦上的 powershell v6。您仍必須擁有 Windows 特定版本之一。因此,如果您只想要一個版本並且想要最新最好的版本,我建議刪除 v6 並安裝 v5.1。

參考:

如何解除安裝 Windows Powershell

Powershell 6 路線圖

相關內容