4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows11 ターミナルのデフォルトをPowerShell 7へ変更

Last updated at Posted at 2024-02-20

Windows11にPowerShell 7をインストールしたのですが、ターミナルを起動するとPowerShell 5のままだったのでターミナルの既定のプロファイルを変更しました。

PowerShell 7のインストール

※PowerShellウィンドウから実施

コマンド
winget install --id Microsoft.Powershell --source winget
出力
PS C:\Users\user01> winget install --id Microsoft.Powershell --source winget
見つかりました PowerShell [Microsoft.PowerShell] バージョン 7.4.1.0
このアプリケーションは所有者からライセンス供与されます。
Microsoft はサードパーティのパッケージに対して責任を負わず、ライセンスも付与しません。
ダウンロード中 https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/PowerShell-7.4.1-win-x64.msi
  ██████████████████████████████   103 MB /  103 MB
インストーラーハッシュが正常に検証されました
パッケージのインストールを開始しています...
インストールが完了しました

ターミナルの起動

Windows11にPowerShell7をインストールしてもスタートメニュー右クリックからターミナルを起動した場合、PowerShellはバージョン5のままです。
image.png

デフォルトターミナルの変更

  1. ウィンドウ上部のメニューを開いて設定を表示
    image.png
    image.png

  2. スタートアップの既定のプロファイルをWindows PowerShellからPowerShellに変更
    image.png

  3. 保存をクリック
    image.png

  4. ターミナルウィンドウを閉じる
    image.png

※次回ターミナル起動時からPowerShell 7 が立ち上がります。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?