Windows 11 Help – Disable Microphone & Camera

Overview

This help file explains how to disable and enable the Microphone and Camera in Windows 11 using PowerShell and Command Prompt.

Administrator privileges are required for all methods described here.

PowerShell – Disable Hardware Devices

This method disables the actual hardware devices using Plug and Play. It is the most secure option.

Disable Microphone

Get-PnpDevice -Class AudioEndpoint |
Where-Object {$_.FriendlyName -match "Microphone"} |
Disable-PnpDevice -Confirm:$false
    

Disable Camera

Get-PnpDevice -Class Camera |
Disable-PnpDevice -Confirm:$false
    
Tip: Run PowerShell as Administrator.

CMD – Privacy (Registry) Method

This method blocks access to the microphone and camera for all apps via Windows privacy settings.

Disable Microphone Access

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone" ^
/v Value /t REG_SZ /d Deny /f
    

Disable Camera Access

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" ^
/v Value /t REG_SZ /d Deny /f
    

Re-Enable Microphone & Camera

PowerShell

Get-PnpDevice -Class AudioEndpoint |
Where-Object {$_.FriendlyName -match "Microphone"} |
Enable-PnpDevice -Confirm:$false

Get-PnpDevice -Class Camera |
Enable-PnpDevice -Confirm:$false
    

CMD / Registry

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone" ^
/v Value /t REG_SZ /d Allow /f

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\webcam" ^
/v Value /t REG_SZ /d Allow /f
    

Important Notes

  • All commands must be run as Administrator.
  • Registry changes may require sign-out or reboot.
  • PowerShell device disable affects all users.
  • Use Group Policy or Intune for enterprise environments.