title: How to set Internet Explorer as the default web browser with PowerShell?
body: <p>I have a VBScript that makes Internet Explorer the default web browser.</p>
  
  <pre><code>Set WshShell = WScript.CreateObject("WScript.Shell")
  WScript.Sleep 1200
  WScript.Sleep 1200
  WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=Internet%20Explorer"
  WScript.Sleep 1200
  WshShell.AppActivate "Set Program Associations"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys " "
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys " "
  WScript.Sleep 2500
  </code></pre>
  
  <p>This script works perfectly, but I want to make the same with PowerShell.</p>
  
  <p>I used the command <code>start-process("$ENV:WINDIR\system32\control.exe</code> to run the Control Panel, but I can't find out how to set the program associations like in the VBScript above.</p>
  
  <p>Does anyone know how to set the program associations with PowerShell?</p>