設定 Internet Explorer 開啟連結的方式 的登錄值 AssociationActivationMode電腦HKLM\Software\Policies\Microsoft\Internet Explorer\Main

原則 ID
DefaultLinksView
適用範圍
電腦設定、使用者設定
支援的作業系統
Windows 8 上至少需要 Internet Explorer 10.0
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Internet Explorer › 網際網路設定

登錄

AssociationActivationMode

REG_DWORD電腦使用者
啟用時的值
取決於選項值
元素
連結的預設瀏覽器啟動行為
選項
項目儲存的值
由 Internet Explorer 決定0
一律在 Internet Explorer 中1
一律在桌面上的 Internet Explorer 中2
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main]

; 選項 (只使用其中一個)
; 由 Internet Explorer 決定
"AssociationActivationMode"=dword:00000000
; 一律在 Internet Explorer 中
"AssociationActivationMode"=dword:00000001
; 一律在桌面上的 Internet Explorer 中
"AssociationActivationMode"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 由 Internet Explorer 決定
reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /v "AssociationActivationMode" /t REG_DWORD /d 0 /f
:: 一律在 Internet Explorer 中
reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /v "AssociationActivationMode" /t REG_DWORD /d 1 /f
:: 一律在桌面上的 Internet Explorer 中
reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /v "AssociationActivationMode" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Force | Out-Null

# 選項 (只使用其中一個)
# 由 Internet Explorer 決定
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'AssociationActivationMode' -PropertyType DWord -Value 0 -Force | Out-Null
# 一律在 Internet Explorer 中
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'AssociationActivationMode' -PropertyType DWord -Value 1 -Force | Out-Null
# 一律在桌面上的 Internet Explorer 中
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'AssociationActivationMode' -PropertyType DWord -Value 2 -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main]

; 選項 (只使用其中一個)
; 由 Internet Explorer 決定
"AssociationActivationMode"=dword:00000000
; 一律在 Internet Explorer 中
"AssociationActivationMode"=dword:00000001
; 一律在桌面上的 Internet Explorer 中
"AssociationActivationMode"=dword:00000002
CMD
:: 選項 (只使用其中一個)

:: 由 Internet Explorer 決定
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "AssociationActivationMode" /t REG_DWORD /d 0 /f
:: 一律在 Internet Explorer 中
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "AssociationActivationMode" /t REG_DWORD /d 1 /f
:: 一律在桌面上的 Internet Explorer 中
reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "AssociationActivationMode" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Force | Out-Null

# 選項 (只使用其中一個)
# 由 Internet Explorer 決定
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'AssociationActivationMode' -PropertyType DWord -Value 0 -Force | Out-Null
# 一律在 Internet Explorer 中
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'AssociationActivationMode' -PropertyType DWord -Value 1 -Force | Out-Null
# 一律在桌面上的 Internet Explorer 中
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'AssociationActivationMode' -PropertyType DWord -Value 2 -Force | Out-Null