允許 Internet Explorer 播放使用替代轉碼器的媒體檔案 的登錄值 EnableAlternativeCodec電腦HKLM\Software\Policies\Microsoft\Internet Explorer\Main
- 原則 ID
- EnableAlternativeCodec
- 適用範圍
- 電腦設定、使用者設定
- 支援的作業系統
- 至少 Internet Explorer 9.0
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › Internet Explorer › 網際網路設定 › 進階設定 › 多媒體
登錄
EnableAlternativeCodec
REG_SZ電腦使用者…\Software\Policies\Microsoft\Internet Explorer\MainHKLM\Software\Policies\Microsoft\Internet Explorer\Main 目前的機碼
HKCU\Software\Policies\Microsoft\Internet Explorer\Main
HKCU\Software\Policies\Microsoft\Internet Explorer\Main
- 啟用時的值
- yes
- 停用時的值
- no
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Main] ; 選項 (只使用其中一個) ; 已啟用 "EnableAlternativeCodec"="yes" ; 已停用 "EnableAlternativeCodec"="no"
CMD
:: 選項 (只使用其中一個) :: 已啟用 reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /v "EnableAlternativeCodec" /t REG_SZ /d "yes" /f :: 已停用 reg add "HKLM\Software\Policies\Microsoft\Internet Explorer\Main" /v "EnableAlternativeCodec" /t REG_SZ /d "no" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Force | Out-Null # 選項 (只使用其中一個) # 已啟用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'EnableAlternativeCodec' -PropertyType String -Value 'yes' -Force | Out-Null # 已停用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'EnableAlternativeCodec' -PropertyType String -Value 'no' -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main] ; 選項 (只使用其中一個) ; 已啟用 "EnableAlternativeCodec"="yes" ; 已停用 "EnableAlternativeCodec"="no"
CMD
:: 選項 (只使用其中一個) :: 已啟用 reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "EnableAlternativeCodec" /t REG_SZ /d "yes" /f :: 已停用 reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "EnableAlternativeCodec" /t REG_SZ /d "no" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Force | Out-Null # 選項 (只使用其中一個) # 已啟用 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'EnableAlternativeCodec' -PropertyType String -Value 'yes' -Force | Out-Null # 已停用 New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'EnableAlternativeCodec' -PropertyType String -Value 'no' -Force | Out-Null