강좌 / 팁
윈 도 우 기본 앱 브라우저 자동으로변경
2020.12.02 09:37
파워쉘을 이용한 방법입니다.
function Set-IEAsDefaultBrowser {
Add-Type -AssemblyName 'System.Windows.Forms'
Start-Process $env:windir\system32\control.exe -ArgumentList '/name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=Internet%20Explorer'
Sleep 2
[System.Windows.Forms.SendKeys]::SendWait("{TAB}{TAB}{TAB}{TAB}{TAB} {TAB}{TAB} ")
}
Set-IEAsDefaultBrowser
timeout 3
Stop-Process -name SystemSettings
PC환경에 맞게 TAB을 조정하셔서 사용하시면 됩니다.
혹시나 파워쉘을 배치파일로 실행하고 싶으신경우에는...
@echo off
powershell.exe -noprofile -executionpolicy bypass -file "파워쉘파일경로.ps1"
exit
위와 같이 실행하시면 될듯하며...
Sysprep 한 이미지 같은경우에는 엣지로 기본브라우저가 고정되어있는경우가 많은데 위와 같은방법으로...
해결하시면 될듯합니다.. Runonce활용하여..
또 다른 방법!
기본 브라우저 변경 툴(DBC) (tistory.com)
편하게 만들어 봤습니다.
dbc e 기본엣지
dbc or dbc i = 기본IE
dbc c 기본 크롬