設定應用程式安裝控制 的登錄值 ConfigureAppInstallControlEnabled 等 1 個電腦HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen
- 原則 ID
- ConfigureAppInstallControl
- 適用範圍
- 電腦設定
- 支援的作業系統
- 至少需要 Windows Server 2016、Windows 10 1809 版
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › Windows Defender SmartScreen › 瀏覽器
登錄
ConfigureAppInstallControlEnabled
REG_DWORD電腦- 啟用時的值
- 1
- 停用時的值
- 0
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\SmartScreen] ; 選項 (只使用其中一個) ; 已啟用 "ConfigureAppInstallControlEnabled"=dword:00000001 ; 已停用 "ConfigureAppInstallControlEnabled"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已啟用 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControlEnabled" /t REG_DWORD /d 1 /f :: 已停用 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControlEnabled" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Force | Out-Null # 選項 (只使用其中一個) # 已啟用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Name 'ConfigureAppInstallControlEnabled' -PropertyType DWord -Value 1 -Force | Out-Null # 已停用 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Name 'ConfigureAppInstallControlEnabled' -PropertyType DWord -Value 0 -Force | Out-Null
ConfigureAppInstallControl
REG_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- 選擇下列其中一個設定:
| 項目 | 儲存的值 |
|---|---|
| 關閉應用程式推薦 | Anywhere |
| 顯示我的應用程式推薦 | Recommendations |
| 從 Microsoft Store 以外的來源安裝應用程式之前警告我 | PreferStore |
| 僅允許來自 Microsoft Store 的應用程式 | StoreOnly |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\SmartScreen] ; 選項 (只使用其中一個) ; 關閉應用程式推薦 "ConfigureAppInstallControl"="Anywhere" ; 顯示我的應用程式推薦 "ConfigureAppInstallControl"="Recommendations" ; 從 Microsoft Store 以外的來源安裝應用程式之前警告我 "ConfigureAppInstallControl"="PreferStore" ; 僅允許來自 Microsoft Store 的應用程式 "ConfigureAppInstallControl"="StoreOnly"
CMD
:: 選項 (只使用其中一個) :: 關閉應用程式推薦 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "Anywhere" /f :: 顯示我的應用程式推薦 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "Recommendations" /f :: 從 Microsoft Store 以外的來源安裝應用程式之前警告我 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "PreferStore" /f :: 僅允許來自 Microsoft Store 的應用程式 reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_SZ /d "StoreOnly" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Force | Out-Null # 選項 (只使用其中一個) # 關閉應用程式推薦 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Name 'ConfigureAppInstallControl' -PropertyType String -Value 'Anywhere' -Force | Out-Null # 顯示我的應用程式推薦 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Name 'ConfigureAppInstallControl' -PropertyType String -Value 'Recommendations' -Force | Out-Null # 從 Microsoft Store 以外的來源安裝應用程式之前警告我 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Name 'ConfigureAppInstallControl' -PropertyType String -Value 'PreferStore' -Force | Out-Null # 僅允許來自 Microsoft Store 的應用程式 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\SmartScreen' -Name 'ConfigureAppInstallControl' -PropertyType String -Value 'StoreOnly' -Force | Out-Null