Windows 10 から Internet Explorer 11 を削除したら PowerShell で wget が使えなくなった
概要
Internet Explorer 11 をアンインストールした Windows 10 環境において,PowerShell で wget コマンドを実行したらエラーが出ました。
環境
- Windows 10 Enterprise 2016 LTSB Evaluation
- LTSB: Long Term Servicing Branch
エラー内容
PS C:\Users\KUBO\Desktop> wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/50.1.0/win64/kn/Firefox%20Setu p%2050.1.0.exe wget : Internet Explorer エンジンを使用できないか、Internet Explorer の初回起動構成が完了していないため、応答のコンテンツを 解析できません。UseBasicParsing パラメーターを指定して再試行してください。 発生場所 行:1 文字:1 + wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
補足
wget
コマンドは,Invoke-WebRequest
のエイリアスだそうです。
PS C:\Users\KUBO\Desktop> Get-Alias wget CommandType Name Version Source ----------- ---- ------- ------ Alias wget -> Invoke-WebRequest
その後
- Internet Explorer 11 を再度インストールしたら使えるようになりました。
- IEのインストール後には,一度起動して「初回起動構成」を完了させる必要がありました。