如何在 Windows 10 上啟用或停用 Windows 功能

如何在 Windows 10 上啟用或停用 Windows 功能

在 Windows 10 中,某些程式和功能(例如 Internet 資訊服務)需要被啟用才能使用。根據需求,某些功能預設為啟用,如不需要可進行關閉。本文將指導您如何有效地在 Windows 10 上啟用或停用 Windows 功能。

注意:您需要以管理員身分登入才能啟用或停用 Windows 功能。

如果「Windows 功能」為空,請檢查並確保 Windows Modules Installer 服務已啟用並設定為「自動」

目錄

  1. 從 Windows 功能關閉或開啟 Windows 功能
  2. 在 PowerShell 中啟用 Windows 功能
  3. 在 PowerShell 中關閉 Windows 功能
  4. 在命令提示字元中開啟 Windows 功能
  5. 在命令提示字元中關閉 Windows 功能

1. 從 Windows 功能關閉或開啟 Windows 功能

步驟 1: 打開控制台,然後點擊程式和功能圖示。

步驟 2: 按一下左側的開啟或關閉 Windows 功能連結

注意:這將開啟檔案C:\Windows\System32\OptionalFeatures.exe

如何在 Windows 10 上啟用或停用 Windows 功能

步驟 3: 如果您收到UAC通知,請按一下「是」

步驟 4: 開啟或關閉所需的 Windows 功能,完成後按一下「確定」

注意:某些 Windows 功能會依資料夾分組在一起,某些資料夾包含具有附加功能的子資料夾。

如何在 Windows 10 上啟用或停用 Windows 功能

步驟 5: 系統將通知您重新啟動電腦以完成停用或啟用該功能。

2. 在 PowerShell 中啟用 Windows 功能

步驟 1: 使用管理員權限開啟 PowerShell

步驟 2: 在 PowerShell 中鍵入您要使用的以下命令,然後按Enter。記下要啟用的已停用 Windows 功能的功能名稱(例如 Internet-Explorer-Optional-amd64)。

資訊不完整:

Get-WindowsOptionalFeature –Online | Where-Object {$_.State –eq “Disabled”}

或提供完整資訊:

Get-WindowsOptionalFeature -FeatureName * –Online | Where-Object {$_.State –eq “Disabled”}
如何在 Windows 10 上啟用或停用 Windows 功能

步驟 3: 在 PowerShell 中輸入以下命令並按下Enter

Enable-WindowsOptionalFeature –FeatureName "FeatureName" -All -Online

注意:將上述指令中的FeatureName替換為步驟2 中的實際FeatureName

例如:

Enable-WindowsOptionalFeature –FeatureName "Internet-Explorer-Optional-amd64" -All -Online

步驟 4: 如果提示重新啟動計算機,請鍵入Y並在準備好後按Enter

如何在 Windows 10 上啟用或停用 Windows 功能

3. 在 PowerShell 中關閉 Windows 功能

步驟 1: 以管理員身分開啟 PowerShell。

步驟 2: 在 PowerShell 中鍵入以下命令並按Enter。為要停用的已啟用 Windows 功能寫入「FeatureName」

資訊不完整:

Get-WindowsOptionalFeature –Online | Where-Object {$_.State –eq “Enabled”}

或完整資訊:

Get-WindowsOptionalFeature -FeatureName * –Online | Where-Object {$_.State –eq “Enabled”}
如何在 Windows 10 上啟用或停用 Windows 功能

步驟 3: 在 PowerShell 中輸入以下命令並按下Enter

Disable-WindowsOptionalFeature –FeatureName "FeatureName" -Online

注意:將上述命令中的FeatureName替換為上述步驟2中的實際FeatureName。

例如:

Disable-WindowsOptionalFeature –FeatureName "Internet-Explorer-Optional-amd64" -Online

步驟 4: 如果提示重新啟動計算機,請鍵入Y並按Enter

4. 在命令提示字元中開啟 Windows 功能

步驟 1: 以管理員身分開啟命令提示字元

步驟 2: 在命令提示字元中鍵入以下命令,然後按Enter。記錄要重新啟用的已停用 Windows 功能的功能名稱

DISM /online /get-features /format:table | find "Disabled"
如何在 Windows 10 上啟用或停用 Windows 功能

步驟 3: 在命令提示字元中鍵入以下命令,然後按Enter

Dism /online /Enable-Feature /FeatureName:"FeatureName" -All

注意:將上述指令中的FeatureName替換為步驟2中的實際FeatureName

例如:

Dism /online /Enable-Feature /FeatureName:"Internet-Explorer-Optional-amd64" -All

步驟 4: 出現提示時重新啟動計算機,鍵入Y

5. 在命令提示字元中關閉 Windows 功能

步驟 1: 以管理員身分開啟命令提示字元。

步驟 2: 在命令提示字元中輸入以下命令,然後按Enter。記下要停用的已啟用 Windows 功能的功能名稱

DISM /online /get-features /format:table | find "Enabled"
如何在 Windows 10 上啟用或停用 Windows 功能

步驟 3: 在命令提示字元中鍵入以下命令,然後按Enter

Dism /online /Disable-Feature /FeatureName:"FeatureName"

注意:將上述指令中的FeatureName替換為步驟2中的實際FeatureName

步驟 4: 輸入Y重新啟動計算機。

祝您成功!


什麼是惡意軟體 HackTool:Win32/Keygen?如何去除?

什麼是惡意軟體 HackTool:Win32/Keygen?如何去除?

您是否掃描過您的設備並發現它感染了 HackTool:Win32/Keygen?在您使用破解或金鑰產生器啟動進階軟體後,Windows Defender 可能會自動警告您有關此惡意軟體的存在。

在 Windows 10 上建立備份和還原點(Restore Point)的說明

在 Windows 10 上建立備份和還原點(Restore Point)的說明

探索如何在Windows 10上建立和管理還原點,這是一項有效的系統保護功能,可以讓您快速還原系統至先前狀態。

在 Windows 10 中開啟裝置管理員的 15 種方法

在 Windows 10 中開啟裝置管理員的 15 種方法

您可以使用以下 15 種方法輕鬆在 Windows 10 中開啟<strong>裝置管理員</strong>,包括使用命令、捷徑和搜尋。

Windows「顯示桌面」的 10 種超快速方法

Windows「顯示桌面」的 10 種超快速方法

很多人不知道如何快速顯示桌面,只好將各個視窗一一最小化。這種方法對於用戶來說非常耗時且令人沮喪。因此,本文將向您介紹Windows中快速顯示桌面的十種超快速方法。

如何使用 Windows Repair 修復 Windows 錯誤

如何使用 Windows Repair 修復 Windows 錯誤

Windows Repair 是一款有效的 Windows 錯誤修復工具,幫助使用者修復與 Internet Explorer、Windows Update 和其他重要程式相關的錯誤。

如何在 Windows 10 中開啟資料夾選項或檔案總管選項

如何在 Windows 10 中開啟資料夾選項或檔案總管選項

您可以使用檔案總管選項來變更檔案和資料夾的工作方式並控制顯示。掌握如何在 Windows 10 中開啟資料夾選項的多種方法。

有關在 Windows 10 上刪除使用者帳戶的 5 種方法的說明

有關在 Windows 10 上刪除使用者帳戶的 5 種方法的說明

刪除不使用的使用者帳戶可以顯著釋放記憶體空間,並讓您的電腦運行得更流暢。了解如何刪除 Windows 10 使用者帳戶的最佳方法。

如何使用Bootsect /nt60將VBC更新為BOOTMGR

如何使用Bootsect /nt60將VBC更新為BOOTMGR

使用 bootsect 命令能夠輕鬆修復磁碟區引導程式碼錯誤,確保系統正常啟動,避免 hal.dll 錯誤及其他啟動問題。

Windows 11 中的存檔應用程式功能是什麼?應該啟用還是停用它?

Windows 11 中的存檔應用程式功能是什麼?應該啟用還是停用它?

存檔應用程式是一項功能,可以自動卸載您很少使用的應用程序,同時保留其關聯的檔案和設定。了解如何有效利用 Windows 11 中的存檔應用程式功能。

如何在 Windows 10 上為 BlueStacks 5 啟用虛擬化 (VT)

如何在 Windows 10 上為 BlueStacks 5 啟用虛擬化 (VT)

要啟用虛擬化,您必須先進入 BIOS 並從 BIOS 設定中啟用虛擬化,這將顯著提升在 BlueStacks 5 上的效能和遊戲體驗。