# 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)