Set-DefaultBrowser powershell

function Set-DefaultBrowser { param($defaultBrowser) switch ($defaultBrowser) { ‘IE’ { Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice’ -name ProgId IE.FTP Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice’ -name ProgId IE.HTTP Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice’ -name ProgId IE.HTTPS } ‘FF’ { Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice’ -name ProgId FirefoxURL Set-ItemProperty ‘HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice’ -name […]