【Vagrant】Windows7で最新のVagrantを使用する

Windows7に最新のVagrant(2.1.5)をインストールし、vagrantを実行すると、PowerShellのバージョン3が必要だというエラーメッセージが出力されます。

 

解決法は、PowerShellバージョン2で動作するVagrantにダウングレードするか、PowerShellをアップデートするかなのですが、前者はできませんでした。

 

よって、PowerShellをアップデートします。

 

1.OSに対応する Windows Management Frameworkをダウンロードし、解凍

https://docs.microsoft.com/ja-jp/powershell/wmf/readme

https://www.microsoft.com/en-us/download/details.aspx?id=54616

2.PowerShellを管理者権限で実行する

3.PowerShellの実行ポリシーを変更

4.PowerShellで、1でダウンロードしたスクリプトを実行

5.PowerShellの実行ポリシーを元に戻す

 

memories.zal.jp