Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 透過群組原則禁止安裝軟體 防止他人隨意安裝程式

編輯:Win7 系統應用技巧

Windows 7 內建的「群組原則編輯器」可設定「停用 Windows Installer」,徹底禁止使用者安裝任何新軟體(僅允許已安裝程式執行)。適合公共電腦、兒童帳號或需嚴格管控軟體安裝的環境。本文提供完整設定步驟。

設定步驟

步驟 1:開啟群組原則編輯器

按 Win+R,輸入 gpedit.msc 按 Enter。

開啟群組原則編輯器

步驟 2:定位並啟用「停用 Windows Installer」

依路徑展開:電腦設定 → 系統管理範本 → Windows 元件 → Windows Installer。雙擊右側「停用 Windows Installer」。

停用 Windows Installer 設定

步驟 3:設定選項

  • 選擇「已啟用」。
  • 在「選項」區選擇「僅用於非受控應用程式」。
  • 下拉選單選「一律」。
  • 點擊「確定」套用。

效果:設定生效後,任何使用者(含管理員)嘗試執行 .msi 安裝檔或透過 Windows Installer 安裝程式,皆會被阻擋並提示「系統管理員已停用 Windows Installer」。若需恢復安裝權限,將此原則設為「未設定」或「已停用」即可。

注意:Windows 7 家用版/家用進階版無 gpedit.msc,需透過登錄檔對應機碼 HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer 建立 DisableMSI (DWORD=1) 達成相同效果。

Copyright © Windows教程網 All Rights Reserved