Disable Integrated Camera or Webcam in Windows  

Page 3 of 5 FirstFirst 12345 LastLast

  1. Posts : 7,607
    Windows 10 Home 20H2
       #20

    Brink said:
    What does the powercfg -h on command to enable hibernate in your .bat to turn on the camera suppose to do?
    I am sorry for powercfg -h on, which was a mistake and should not have been there.

    Brink said:
    When I was testing this, if the camera was already being used say by the Camera app, changing the registry value to disable the camera had no effect until after anything using the camera was closed.
    I have just done a test on the Camera app. The new value will take effect immediately after I press the Windows key + M. Try it yourself, and see whether the same will happen at your end.
      My Computer


  2. Posts : 69,032
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #21

    Matthew Wai said:
    I have just done a test on the Camera app. The new value will take effect immediately after I press the Windows key + M. Try it yourself, and see whether the same will happen at your end.
    Perfect. I get the same results.
      My Computers


  3. Posts : 5,286
    Win 10 Pro x64
       #22

    Matthew Wai said:
    I have created the attached script to disable/enable the camera. I can create another script so that it can be run via a context-menu shortcut similar to this one: How to Add Create Elevated Shortcut to New Context Menu in Windows 10

    Click here to download "Turn_on_or_off_the_camera.bat"
    Thanks!
    Yeah, this works when the camera is not in use. But when I try the WinKey+M, it closed the camera and somehow changed the privacy settings and disabled it.

    I just think that the Yes-No part of the script is not necessary since the primary objective is to either open or close the camera.

    Disable Integrated Camera or Webcam in Windows-image.png

    Disable Integrated Camera or Webcam in Windows-image.png

    Therefore, the answer is always "Yes". Otherwise, we can just close the window(?).

    So, is it possible to just automatically select "Yes" after executing the script? Then a message will just pop-up saying "Camera Disabled" or "Camera Enabled.
    The context menu shortcut will surely speed up the process.

    Thanks again!
      My Computer


  4. Posts : 7,607
    Windows 10 Home 20H2
       #23

    For testing only: click here to download "Turn_on_or_off_the_camera (for badrobot).bat", which has been created according to the following suggestion:
    badrobot said:
    just automatically select "Yes" after executing the script? Then a message will just pop-up saying "Camera Disabled" or "Camera Enabled.
      My Computer


  5. Posts : 5,286
    Win 10 Pro x64
       #24

    Matthew Wai said:
    For testing only: click here to download "Turn_on_or_off_the_camera (for badrobot).bat", which has been created according to the following suggestion:
    Hey Matthew,

    That's awesome!

    A notification pops up depending on when the camera is being disabled or enabled.


    Disabling the camera:

    Disable Integrated Camera or Webcam in Windows-image.png


    Enabling the camera:

    Disable Integrated Camera or Webcam in Windows-image.png

    Everything good on the camera configuration side.

    All that is needed now is a context-menu installer and uninstaller. :)

    Thanks a lot!
      My Computer


  6. Posts : 7,607
    Windows 10 Home 20H2
       #25

    @Brink, if you find the script acceptable, I can add it into the context menu as badrobot suggested.
      My Computer


  7. Posts : 69,032
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #26

    Matthew Wai said:
    @Brink, if you find the script acceptable, I can add it into the context menu as badrobot suggested.
    Sure, that will be great. Thank you.

    I'll add it as an option in the tutorial.
      My Computers


  8. Posts : 5,286
    Win 10 Pro x64
       #27

    Matthew Wai said:
    @Brink, if you find the script acceptable, I can add it into the context menu as badrobot suggested.
    In the meantime, I added it as a toolbar in Taskbar... :)

    Disable Integrated Camera or Webcam in Windows-image.png
      My Computer


  9. Posts : 5,286
    Win 10 Pro x64
       #28

    Matthew Wai said:
    @Brink, if you find the script acceptable, I can add it into the context menu as badrobot suggested.
    To be on the safe side, it's probably better to require the user to press Win Key + M whether the camera is in use or not. I changed the script to show it (see below). Just a suggestion.

    Thanks for your help Matthew. And thanks Brink for the tut!

    Disable Integrated Camera or Webcam in Windows-image.png


    Edit:
    I am glad it didn't affect the face unlock on my laptop that uses the same camera. Below, the camera is still disabled after a reboot.

    Disable Integrated Camera or Webcam in Windows-videotogif_2020.06.24_10.08.10.jpg
    Last edited by badrobot; 24 Jun 2020 at 09:28.
      My Computer


  10. Posts : 7,607
    Windows 10 Home 20H2
       #29

    @Brink and @badrobot may negotiate about the pop-up messages, which can be changed at will in the following scripts:

    Add_[Camera_on-off]_into_context_menu.bat
    Remove_[Camera_on-off]_from_context_menu.bat

    The first one will add it into the desktop context menu. The second will remove it.
    As usual, it will be an elevated shortcut without a UAC prompt.

    Disable Integrated Camera or Webcam in Windows-context-menu.jpg

    Disable Integrated Camera or Webcam in Windows-add-.jpg

    Disable Integrated Camera or Webcam in Windows-remove-.jpg
      My Computer


 

Tutorial Categories

Disable Integrated Camera or Webcam in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:40.
Find Us




Windows 10 Forums