MirrorNest
← すべてのガイド

Windows Terminal + PowerShell 7

Replace the legacy Windows console with the modern, tabbed Windows Terminal and upgrade from Windows PowerShell 5.1 to the actively-developed, cross-platform PowerShell 7.

対象: Windows 10 2004+ or Windows 11TerminalDevelopment公式ホームページ ↗公式ドキュメント ↗
このガイドは上記リンク先にあるWindows Terminal + PowerShell 7公式ドキュメントをもとに作成されています。ディストリビューションやプロジェクトのバージョンは時間とともに変わるため、本番サーバーでこれらのコマンドを実行する前に、必ず公式ドキュメントで正確なパッケージ名・バージョン名を確認してください。
  1. 1Install Windows Terminal

    winget install --id Microsoft.WindowsTerminal -e

    Windows 11 ships with it by default -- this step mainly applies to Windows 10.

  2. 2Install PowerShell 7

    This installs alongside the built-in Windows PowerShell 5.1 rather than replacing it -- both remain available.

    winget install --id Microsoft.PowerShell -e
  3. 3Set PowerShell 7 as Windows Terminal's default profile

    In Windows Terminal, open Settings (Ctrl+,), set "Default profile" to "PowerShell" (the pwsh.exe one, distinct from "Windows PowerShell"), and save.