Disabling Webcams

by Dec 1, 2021

Looking for privacy? Here is a short script that looks for enabled cameras on your system and offers you to disable any camera you don’t want to use:

   # find working cameras
  $result = Get-PnpDevice -FriendlyName *Camera* -Status OK -ErrorAction Ignore | 
    Out-GridView -Title 'Select Camera Device To Disable' -OutputMode Single | 
    Disable-PnpDevice -Confirm:$false -Passthru -whatif # remove -WhatIf to actually disable devices)

Twitter This Tip! ReTweet this Tip!