系統管理員可能會需要將 Chrome 設為網域中電腦的預設瀏覽器。您必須完成下列步驟,才能在已加入網域並搭載 Microsoft Windows 10 以上版本的電腦中,將 Chrome 設為預設瀏覽器。此外,Windows 近期進行了一些變更,要求您必須額外設定政策,才能對 Outlook 和 Teams 中顯示的網頁連結使用 Chrome 做為預設瀏覽器。
將 Chrome 設為預設瀏覽器
預設應用程式關聯檔案是 XML 檔案,可用來建立檔案類型與應用程式之間的關聯。舉例來說,如果您將 .html 或 .htm 檔案與 Chrome 應用程式建立關聯,每當使用者開啟 html 或 htm 檔案時,Chrome 就會根據預設啟動。
針對已加入網域的電腦,您可以建立一個共用的 XML 檔案,讓系統自動將 Chrome 設為預設瀏覽器應用程式。這個檔案必須存放在伺服器的共用資料夾中,以便所有加入網域的電腦都能存取。
注意:如果目標電腦未安裝 Chrome,系統就不會套用檔案關聯,而且使用者必須在開啟連結 (http 或 https) 或檔案 (html 或 htm) 時選擇應用程式。
Download the default application association file
您可以在 Windows 中並同時安裝多個 Chrome 版本。下方的範例 xml 檔案會示範如何將特定的 Chrome 版本設為開啟檔案 (html、htm) 或連結 (http、https) 的預設瀏覽器。
Chrome 穩定版範例 (chromedefault.xml):
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".htm" ProgId="ChromeHTML" ApplicationName="Google Chrome" />
<Association Identifier=".html" ProgId="ChromeHTML" ApplicationName="Google Chrome" />
<Association Identifier="http" ProgId="ChromeHTML" ApplicationName="Google Chrome" />
<Association Identifier="https" ProgId="ChromeHTML" ApplicationName="Google Chrome" />
</DefaultAssociations>
Chrome Beta 版範例 (chromedefault.xml):
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".htm" ProgId="ChromeBHTML" ApplicationName="Google Chrome Beta" />
<Association Identifier=".html" ProgId="ChromeBHTML" ApplicationName="Google Chrome Beta" />
<Association Identifier="http" ProgId="ChromeBHTML" ApplicationName="Google Chrome Beta" />
<Association Identifier="https" ProgId="ChromeBHTML" ApplicationName="Google Chrome Beta" />
</DefaultAssociations>
Chrome 開發人員版範例 (chromedefault.xml):
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".htm" ProgId="ChromeDHTML" ApplicationName="Google Chrome Dev" />
<Association Identifier=".html" ProgId="ChromeDHTML" ApplicationName="Google Chrome Dev" />
<Association Identifier="http" ProgId="ChromeDHTML" ApplicationName="Google Chrome Dev" />
<Association Identifier="https" ProgId="ChromeDHTML" ApplicationName="Google Chrome Dev" />
</DefaultAssociations>
注意:預設關聯政策會在每次登入時設定。使用者可以在登入後變更關聯,但該變更只會套用到當下的登入工作階段。下次登入時,系統就會重設關聯政策。
群組原則管理主控台可讓您建立及管理網域的群組原則物件 (GPO)。這些 GPO 會控制已連結網域的電腦所套用的政策。建立 GPO 後,您可以利用安全性篩選功能將 GPO 套用至網域中的電腦。
在以下範例中,您會建立一個 GPO (Set Chrome as default browser),並套用至 chromeforwork.com 網域中的電腦。
- 開啟群組原則管理主控台。依序前往 Start > All programs > Administrative Tools > Group Policy Management。
- 在導覽窗格中,依序前往「Group Policy Management」>「Domains」>「chromeforwork.com」。
- 在網域名稱上按一下滑鼠右鍵 (在本例中為 chromeforwork.com),然後按一下「Create a GPO in this domain, and Link it here.」。。
- 輸入新 GPO 的名稱 (在這個範例中,名稱是將 Chrome 設為預設瀏覽器),然後按一下「OK」。
- 在導覽窗格中,依序前往 [Group Policy Management] > [Domains] > [chromeforwork.com] > [Group Policy Objects],然後選取 [將 Chrome 設為預設瀏覽器]。
- 在「Security Filtering」窗格中,按一下 [Add]。
- 在「Select User, Computer, or Group」視窗中,輸入您要新增的物件名稱,接著按一下 [Check Names] 以驗證您輸入的名稱,然後按一下 [OK]。
您可以輸入 Domain Computers 新增已加入這個網域的所有工作站和伺服器 (如下方範例所示),也可以指定其他電腦群組。
- GPO 現已套用至所有已連結網域的電腦。
如要為已連結網域的電腦設定預設關聯設定檔,請編輯 Windows 伺服器上的相關 GPO。 在下列步驟中,請使用與步驟 2 相同的 GPO 和網域名稱 (在此範例中為 chromeforwork.com)。
- 開啟群組原則管理主控台。
依序前往 Start > All programs > Administrative Tools > Group Policy Management。
- 在導覽窗格中,依序按一下 [Group Policy Management] > [Domains] > [chromeforwork.com]。
- 按一下 [Linked Group Policy Objects] 分頁標籤,查看這個網域的所有 GPO。
- 在您要選取的 GPO 上按一下滑鼠右鍵,然後點選 [Edit] 開啟群組原則管理編輯器。
在這個範例中,請以滑鼠右鍵按一下 [將 Chrome 設為預設瀏覽器]。
- 在群組原則管理編輯器中,依據前往 [Computer Configuration] > [Policies] > [Administrative Template] > [Windows Components] > [File Explorer],然後按兩下 [Set a default associations configuration file]。
- 在「Set a default association configuration file」視窗中,選取「Enabled」選項。
- 在「Options」方塊中,輸入預設應用程式關聯 XML 檔案的位置。
這個 XML 檔案會建立檔案類型 (例如 .htm、.html、http 和 https) 與 Chrome 應用程式之間的關聯。您可以使用 Google 提供的範例 ML 檔案,也可以自行建立檔案。
注意:檔案不能位於伺服器本機;必須位於網域中所有電腦都可存取的位置。
您可以在目標電腦 (即 Active Directory 已加入網域並搭載 Windows 10 以上版本的電腦) 上,驗證您建立的 GPO 已確實套用,且電腦會使用 Chrome 做為預設瀏覽器。
在 Windows 用戶端重新整理政策時,系統就會自動套用 GPO。您也可以選擇執行 GPUpdate.exe /force
指令,隨時強制手動重新整理。
注意:下載並套用政策後,電腦必須重新啟動,政策才會生效。
- 在 Windows 用戶端上,依序前往 [Windows] > [System32]。在 rsop.msc 上按一下滑鼠右鍵,然後選取 [以系統管理員身分執行]。
- 使用系統管理員憑證進行驗證,然後按一下 [是]。
- 依序前往 [Computer Configuration] > [Administrative Templates] > [Windows Components] > [File Explorer],確認「Set a default associations configuration file」 設定可用。
- 開啟「Set a default associations configuration file」,確認設定已啟用,且 XML 檔案位置正確。
- 如果成功將 Chrome 設為預設瀏覽器,那麼副檔名為 htm 和 html 的檔案都會使用 Chrome 圖示。
將 Chrome 設為 Microsoft Outlook 和 Teams 網頁的預設瀏覽器
Microsoft 已變更 Windows,因此現在 Outlook 和 Teams 中的網頁連結都會預設以 Microsoft Edge 開啟。如要將 Windows 設定為使用 Chrome 開啟網頁連結,請完成下列任一做法。
- 開啟 Microsoft 365 Apps 系統管理中心。
- 依序前往 Customization > Policy Management
- 按一下 Create。
- 在 Start with the basics 頁面中,視需要輸入名稱和說明,然後按一下 Next。
- 在 Choose the scope 頁面中選取您所需的範圍,然後按一下 Next。
- 在 Configure Settings 頁面的搜尋框中輸入 browser,接著按一下 Enter 鍵。
- 從搜尋結果中選取 Choose which browser opens web links。
- 從 Choose which browser opens web links 方塊的清單中選取 Default Browser。
- 按一下 Apply。
- 按一下 Configuration Settings 頁面中的 Next。
- 檢查設定,然後依序按一下 Create 和 Done。
您可以使用群組原則管理主控台,為您的網域建立及管理群組原則物件 (GPO)。這些 GPO 會控管所有已連結到網域的電腦所套用的原則。建立 GPO 後,您可以利用安全性篩選功能將 GPO 套用至網域中的電腦。
在下列範例中,您會建立一個 GPO,並將其套用至 chromeforwork.com 網域中的電腦。
- 依序前往 Start > All programs > Administrative Tools > Group Policy Management。
- 在左側依序前往 Group Policy Management > Domains。
- 在 chromeforwork.com 網域上按一下滑鼠右鍵,然後按一下 Create a GPO in this domain, and Link it here..。
- 在 Name 欄位中輸入新 GPO 的名稱 (例如 Set Chrome as default browser),然後按一下 OK。
- 在左側依序前往 Group Policy Management > Domains > chromeforwork.com > Group Policy Objects,然後選取 Set Chrome as default browser。
- 按一下 Security Filtering 下方的 Add。
- 在 Enter the object name to select 欄位中,輸入要新增的物件名稱。
- 按一下 Check Names 來驗證您所輸入的名稱,接著按一下 OK。
- 您可以輸入 Domain Computers 新增所有已加入這個網域的工作站和伺服器 (如下方範例所示),也可以指定其他電腦群組。
GPO 現已套用至所有已連結到網域的電腦。
相關主題
Microsoft TechNet 的詳細資訊:
Google 與相關符號和標誌均為 Google LLC 的商標。所有其他公司名稱和產品名稱則為相關公司的商標。