yourtablecloth / TableCloth

식탁보 프로젝트
GNU Affero General Public License v3.0
886 stars 54 forks source link

IE Mode 관련 설정 방식을 GPO를 사용하도록 수정 #79

Closed rkttu closed 1 year ago

rkttu commented 2 years ago

현재는 레지스트리 키를 이용해서 얕은 수정을 진행하고 있는데, 최근 테스트 결과 Windows 11 22621 빌드에서 제대로 IE Mode 활성화가 되지 않는 것을 확인함.

GPO를 명시적으로 호출하도록 수정해야 할 필요가 있으며, 아래 자료들을 참고하여 개발을 진행하려 한다.

전체 GPO 리스트 (엑셀 문서): https://www.microsoft.com/en-us/download/details.aspx?id=25250 C#에서 GPO를 설정하는 법: https://stackoverflow.com/questions/21469447/how-to-programmatically-set-gpo-to-not-configured-or-disabled C++에서 GPO를 활용하는 법: https://stackoverflow.com/questions/2266797/how-to-apply-windows-group-policy-using-net

추가: 샌드박스 내에서 IE Redirect를 끄는 GPO 설정도 확인하여 같이 적용해보려 한다.

rkttu commented 1 year ago

관련 GPO 항목

Use the Enterprise Mode IE website list

HKLM\Software\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode!SiteList HKCU\Software\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode!SiteList

Configure the Enterprise Mode Site List

HKLM\Software\Policies\Microsoft\MicrosoftEdge\Main\EnterpriseMode!SiteList HKCU\Software\Policies\Microsoft\MicrosoftEdge\Main\EnterpriseMode!SiteList

Send all intranet sites to Internet Explorer

HKLM\Software\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode!RestrictIE HKCU\Software\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode!RestrictIE

rkttu commented 1 year ago

샌드박스 안에서는 Group Policy에 관련된 기능을 완전히 사용할 수 없음. 대신, GPO와 연결된 레지스트리 키를 변경하는 기존 동작을 그대로 사용하되, 카탈로그를 로컬에 만들지 않고 TableCloth Catalog 웹 사이트에 배포하는 방식으로 문제를 해결함.