Disable WEB camera with PowerShell in Windows

Windows PowerShell is a powerful tool inside the Windows environment often overlooked by typical users which is a great mistake since it can offer a large array of functionality and usability and if used well can offer a unique working experience.

Today we will be using PowerShell to turn the WEB camera off so it can not be accessed, completely disabling it for use. You might want to do this for security reasons or just want to learn few new things. Whatever your reason might be, I am welcoming you to this tutorial and please do keep reading.

Finding device ID

In order to disable the WEB camera first thing we need to do is to find a matching device ID. We will find this value inside the device manager, so press ⊞ WINDOWS + X to open the secret menu.

keyboard with windows and x markedIn the menu choose device manager and click on it.

Windows menu device managerWhen the device manager opens, expand the Imaging devices or Cameras section.

Right-click Integrated Camera or the primary webcam, and click Properties.

Go to the Details tab.

Under the Property section, click to select Matching device ID from the drop-down.

Right-click the value and select Copy

camera device managerThe next step is to download and install Windows Driver Kit (WDK)

PowerShell script

Create and run a PowerShell script with the following parameters/values to disable the camera. Substitute the <FOLDER> placeholder with the actual name of the folder where your copy of Devcon is residing

$id = (Get-CimInstance Win32_PnPEntity |

where caption -match '<PRIMARY CAMERA>').pnpDeviceID

$ppid = "{0}{1}" -f '@',$id

Set-Location c:\<FOLDER>

Devcon status $ppid

Devcon disable $ppid

Devcon status $ppid

To enable the camera device, run the command below in PowerShell:

devcon enable $ppid

Do You Need Help with Your Device?

Our Team of Experts May Help
Troubleshoot.Tech Experts are There for You!
Replace damaged files
Restore performance
Free disk space
Remove Malware
Protects WEB browser
Remove Viruses
Stop PC freezing
GET HELP
Troubleshoot.Tech experts work with all versions of Microsoft Windows including Windows 11, with Android, Mac, and more.

Share this article:

You might also like

Fix Can’t initialize disk in Windows 10
If you have recently installed a new internal or external hard drive or SSD and you’ve noticed that its status on the left side of the Disk Management tool states “Unknown Not Initialized”, this indicates that Windows can’t initialize the disk and that you won’t be able to use this new SSD or hard drive. You can encounter this kind of issue randomly and not just with a new hard drive or SSD but also with existing drives. There are times when you won’t be able to find your drive or partition in the File Explorer. In such a case, you have to check the Disk Management if your drive or partition is there physically. You also have to check if you can see it as Not Initialized. If it is, then this means that the disk or partition does not have a valid signature that is if it’s not registered with the system properly. Note that a disk is registered when you format it at least once so if the disk was available before, then it could be somehow corrupted. To resolve the problem, you can try to initialize the disk manually or bring it online and add a drive letter. You can also try checking the Device Manager for issues or check the cable physically.

Option 1 – Try to manually initialize the disk

Since initializing the disk is the most common way to resolve the “Unknown Not Initialized” error, this is what you have to try first.
  • To initialize the disk manually, you have to open the Disk Management from the WinX menu by tapping Win + X keys and selecting Disk Management.
  • From there, you can find the non-initialized disk. Right-click on it and select the “Initialize Disk” option.
  • Next, select the partition style. It is recommended that you use the MBR option instead of the GPT or GUID Partition Table.
  • Now click the OK button. Your hard drive or SSD should now initialize without any problem.

Option 2 – Set the disk Online and add the Drive letter

  • If the disk appears to be offline under Disk Management, right-click on it and select the Online option.
  • On the other hand, if the disk is already set Online but does not have a drive letter, right-click on it and select the Change drive letter and path option.
  • Select a letter that is not allocated yet.
  • Once you’re done, you have the option to format the disk in either NTFS or FAT32 but if you are using a 64-bit computer, make sure that you opt for NTFS.

Option 3 – Try to check any issues in the Device Manager

It is also possible that the hard drive is not working properly due to some driver issues. Thus, it’s better if you check the Device Manager and see if that drive is listed with a yellow exclamation mark next to it. And if that’s the case, you have to right-click on that drive and select the Uninstall drive option. After that, click on Action and then run the Scan for hardware changes. It should fix the problem.

Option 4 – Try to physically check the cable

You might also want to check the physical status of the wires and see if they are connected properly or not. Specifically, you have to check two cables, such as:
  • The first one is the power cable that’s connected to your SMPS.
  • Next is the one that’s connected to your motherboard.
If any of the two cables are not working or missing, then it’s no wonder why your drive has an “Unknown Not Initialized” status. Thus, you need to have them replaced to fix the problem.
Read More
Check Windows 11 UI inside your Browser
windows 11 websiteWindows 11 release date is closing in, some people have tried it via insider build, some have decided not to. It has come to our attention that there is a little website made by BlueEdge that offers a virtual Windows 11 desktop. Opening the Website will put you right inside Windows 11 desktop, now take note that this is not Windows 11, it is a simulation of Microsoft’s newest OS and therefore many things will not work like File Explorer, etc. One thing you can make sure it is working is UI itself, you can see how you do like the new Taskbar, start menu, widgets, and some other things. You can just pop up on the site and check how you do like the overall new look and feel of Windows 11 UI before installing it or trying it. We are sure that many more options will come in time but even now you can get a feel of the newest OS. Windows 11 BlueEdge site: https://win11.blueedge.me/
Read More
Keyboard wont type numbers in Windows
As you know, you can find the number keys in two spots on your keyboard – one is above the letters while the second one is at the number pad. Recently, a number of users reported not being able to type any numbers on their keyboards while some reported that their keyboards only type numbers. This issue could occur on both sets of the number keys or on the one at the number pad. This is a rare situation and seldom happens to users. So if you are one of the few who experience the same problem then you’ve come to the right place as this post will guide you on what you can do to fix the keyboard issue. This issue is most likely due to a switched-off number pad, outdated or corrupted keyboard drivers, turned on mouse keys or it might have something to do with the physical connections. Whatever the cause is, here are some options you have to try to resolve the problem.

Option 1 – Try to enable Numlock

The first thing you can do to fix the issue with the keyboard is to enable the Numlock since one of the most common reasons for this kind of problem is where the keyboard won’t type numbers because the Numlock key is disabled. Thus, you have to enable this key by pressing it once to enable the number pad.

Option 2 – Turn off the Mouse key

  • From the Start Menu, go to Control Panel.
  • Navigate to Ease of Access Center.
  • Then select the option “Make the keyboard easier to use”.
  • Navigate to the option “Control the mouse with keyboard” and then uncheck the “Turn On Mouse Keys” option to turn off the Mouse key.
  • Click on Apply and then on OK to save the changes made.
Note: The problem with the keyboard could stem down to a simple issue in its settings so if you have successfully followed the steps for this solution then you should be able to fix the problem.

Option 3 – Reinstall, update or rollback your keyboard driver

Once you’ve determined that the problem is in the software part of the keyboard, it is now time to try to reinstall, update or roll back your keyboard drivers. To reinstall the driver for your keyboard, refer to these steps:
  • From the WinX Menu, open the Device Manager.
  • In the Device Manager, you should find your laptop’s keyboard under the “Keyboards” option. Right-click on it and select the “Uninstall” option.
Note: If you’re not quite certain about your laptop’s keyboard, you can uninstall all the keyboards if there’s more than one.
  • After that, restart your PC and see if the keyboard driver is installing automatically. If not, open the Device Manager again and right-click on Keyboards, and select the option “Scan for hardware changes” to install it.
Once the keyboard driver is installed again, check if your keyboard is now working properly or not.

Option 4 – Try connecting the keyboard to a different USB port or another computer

The problem might have something to do with the USB port that’s currently in use by your keyboard. It could be that it’s not working so it makes sense to unplug it and attach it to another USB port. You can also clean the USB port on both ends to ensure that they are not affected by corrosion. In addition, you can also try connecting the keyboard to a different computer and see if the Shift key works there or not.

Option 5 – Try to check your connections

You can also try checking if the connection mode you are using for your keyboard is functioning properly. For instance, if you are using a Surface 2-in-device, you can clean the connection pins and see if it resolves the problem.

Option 6 – Run the Hardware and Devices Troubleshooters

  • The first thing you need to do is click on Start and then on the gear-like icon to pull up the window for Settings.
  • After opening Settings, look for the Update and Security option and select it.
  • From there, go to the Troubleshoot option located on the left-hand side of the list.
  • Next, select Keyboard from the list and open the Troubleshooter and run it. Once it is doing its job, wait for it to complete the process and then restart the system.
  • After the system restarts, check if the problem’s now fixed. If not, refer to the next option given below.
Read More
Changing the Ownership of a File or Folder
There are many times when you have to change the ownership of a folder or a file so that other users can use them as well or if you want to transfer files to them, or an old account has been removed and all the files need to be assigned to a new user. Windows 10 keeps all these files locked under the account by default which created a folder or file. So unless a user is an admin or if the file belongs to that particular user, other users won’t be able to access or edit the file. So if you want to change the ownership of a folder or a file, then you’ve come to the right place as this post will guide you on how exactly you can do that.

To get started, make sure to follow the instructions provided below carefully.

Step 1: First, you need to open File Explorer by tapping the Win + E keys. Once you’ve opened it, navigate to the folder or file that you want to change the ownership. Step 2: Right-click on the folder or file and click on Properties and then go to the Security tab. Step 3: From there, click on the Advanced button located at the bottom right part of the window to open the Advanced Security Settings of the folder or file. Step 4: As you can see, the current owner will be listed with the Change link available next to the “Owner” label. Now click on this link to open the Select User or Group window. Step 5: After that, click on the Advanced button once again and click on the “Find Now” button to see the list of all the users as well as groups that are available in the computer. Step 6: Then select the user you want to give ownership to and click on the OK button and then click the OK button once more to save the changes made. Step 7: This will take you back to the Advanced Security Settings window but this time, the owner will be changed to whoever user you’ve selected. But you’re not done yet as you still have to check two additional options to help you completely transfer the ownership of the sub-folders as well as the files. You have to check the checkbox of the following options:
  • Replace owner on sub-containers and objects
  • Replace all child permission entries with inheritable permission entries from the object.
Step 8: After that, you need to click the Apply and OK buttons to confirm and save the changes made. This will completely transfer the ownership of the file. However, there is still one last thing you have to do – you have to go back to the Advanced Security Settings window to remove the access of any other user on the folder or file. Once you’re there, remove the existing user to make sure that the only assigned user has the access to the folder or file.
Read More
Server certificate revoked ERR_CERT_REVOKED!
While browsing the internet, if you suddenly encounter a warning with an error message saying, “Server certificate has been revoked ERR CERT REVOKED” then it indicates that the SSL certificate used by the website has been revoked by its issuer. This kind of problem can only be fixed by the website owner but that does not mean that you can’t do anything about it. In fact, you have the option to bypass this error as well as contact the certificate issuer – all this and more. Just a reminder, if a website that accepts payment, its passwords don’t have SSL or has some certification issue, you should never trust it. For instance, if you are trying to purchase something online and you’re on the payment stage but you encounter the “Server certificate has been revoked ERR CERT REVOKED” error, you must not proceed. To resolve the “Server certificate has been revoked ERR CERT REVOKED” error, here are some things you can do.

Option 1 – Try contacting the Certificate Issuer

If you are the website owner, of course, the best thing you can is to get in touch with the Certificate Issuer in order to resolve the problem.

Option 2 – Try fixing the Date and Time

You have to check your computer’s Date and Time. There are cases when this simple setting causes a connection problem. So if your computer Date and Time is set to date or time that this after the certificate expiration date, then you have to make sure that you set it to automatically configure time. To do so, just open Settings > Time and Language. From there, turn on the toggle for “Set time automatically” and “Set time zone automatically” options. After that, check if it fixes the error, if not, you need to check if the manual selection is correctly set or not.

Option 3 – Bypass the Certificate Revocation Check

As pointed out earlier, you have the option to bypass the Certificate Revocation check. All you have to do is follow the steps below.
  • In the search box of your browser, type “internet options” and open it once it appears.
  • After that, go to the Advanced tab and navigate to the Security subheading.
  • Next, uncheck the “Check for publisher’s certificate revocation” option as well as the “Check for server certificate revocation” option.
  • Now restart your computer. Upon the next startup, try opening the website again. This time, your browser will stop checking it for certificate issues. However, it’s not safe to leave those options unchecked so make sure that once the website’s SSL certificate is fixed or once you no longer have to visit that website, you recheck those options.
Read More
Steam 2021 Winter sale official date
Each year Steam makes a couple of large sales, and each year there are speculations and leaks on the date when the sale is going to happen and when it is starting. It seemed that Steam has become aware that these leaks will not stop and that store really cannot hide that kind of important date from the public so in the latest news Steam Purley has just given the date of this year's big winter sale. steam winter saleProbably tired of even trying to hide it, Steam has released that this year's big Steam Winter sale is officially starting on December 22nd, 2021, and closing on January 5th, 2022. So if you have someone to buy a gift or just want to drop a few great games in your library at a low price this is the time when you should do it.
Read More
Fix Windows Update Error 0x800F081F – 0x20003
If you are trying to upgrade your computer but encounter the Windows Update Error 0x800F081F – 0x20003 instead, then read on as this post will guide you in fixing this Windows Update error. This kind of error is commonly encountered when upgrading your copy of Windows 10 and is caused by errors with various developer-related settings that are being enabled in the system. When you encounter Windows Update Error 0x800F081F – 0x20003, you will see either of these error messages:
“We couldn’t install Windows 10. The installation failed in the SAFE_OS phase with an error during INSTALL_UPDATES operation: Error 0x800F081F”  “The installation failed in the Safe_OS phase with an error during apply_image operation: Error: 0x800f081f – 0x20003”
To fix this kind of Windows Update error, you need not use external programs but you can try to disable the Developer Mode, run the Windows Update troubleshooter or restart all the Windows Update-related services and components. For more details, refer to the options provided below.

Option 1 – Try to disable Developer Mode

You might have to disable Developer Mode to fix the Windows Update Error 0x800F081F – 0x20003. How? Refer to these steps:
  • Tap the Win + I keys on your keyboard to open the Settings app.
  • Next, go to Update & Security > For Developers.
  • From there, select the toggle for Sideload apps or Microsoft Store apps located on the right-side panel.
  • If you get any prompt, just click on Yes.
  • After that, navigate to Apps > Apps & features and then click on Optional features on the right-side panel.
  • Then scroll down to locate the Windows Developer Mode entry and select it and click on Uninstall.
  • Once you’re done uninstalling the Windows Developer Mode component, close the Settings app and restart your computer to apply the changes made.

Option 2 – Try to run the Windows Update Troubleshooter

You should also try to run the built-in Windows Update troubleshooter as it could help you resolve the Windows Update Error 0x800F081F – 0x20003. To run it, go to Settings and then select Troubleshoot from the options. From there, click on Windows Update and then click the “Run the troubleshooter” button. After that, follow the next on-screen instructions and you should be good to go.

Option 3 – Try restarting various Windows Update-related services and components

  • Tap the Win + X key combination and select Command Prompt (Admin) to open Command Prompt with admin privileges.
  • After opening Command Prompt, copy and paste each one of the commands listed below one by one and tap Enter right after you enter each command.
    • net stop wuauserv
    • net stop bits
    • net stop appidsvc
    • ren %systemroot%SoftwareDistribution SoftwareDistribution.bak
    • ren %systemroot%system32catroot2 catroot2.bak
  • Once you’ve entered all the commands given above, they will stop all the Windows Update services that are running on your computer as well as clear the SoftwareDistribution folder, and reset the Catroot2 folder. Now you have to start all these Windows Update services you’ve just stopped by executing the following commands:
    • net start wuauserv
    • net start bits
    • net start appidsvc
    • net start cryptsvc
  • After that, restart your computer and try to run the setup again, and see if the error is now fixed.
Read More
A Quick Guide to Fixing Connapi.dll Error Code

Connapi.dll Error Code - What is it?

Connapi.dll is a type of dynamic link library file. This file contains small programs like any other DLL file and is called to load certain programs on your PC. The Connapi.dll error message occurs either when using or installing programs. This error message is displayed in either of the following messages:
“Connapi.dll Not Found" "This application failed to start because connapi.dll was not found. Re-installing the application may fix this problem." "The file connapi.dll is missing." "Cannot start [APPLICATION]. A required component is missing: connapi.dll. Please install [APPLICATION] again." "Cannot find [PATH]connapi.dll"

Solution

Restoro box imageError Causes

Connapi.dll error may occur due to numerous reasons on your PC. The most common causes include:
  • Missing Connapi.dll file
  • Corruption of the Connapi.dll file
  • Driver Issues
  • Viral Infection
  • Registry Issues such as bad and invalid entries
This error may hamper your ability to access your desired programs causing you a great deal of inconvenience. And if the underlying cause of the error is related to the registry, then your computer can be at serious risks like system failure and crash.

Further Information and Manual Repair

To resolve Connapi.dll error code on your PC, here is a list of solutions. These are easy, very simple to perform, deliver the best results, and more importantly require no technical expertise.

Solution 1: Check your Recycle Bin - You May Have Deleted the File Accidentally

As dll files are shared files, it is possible that you accidentally deleted the Connapi.dll file while uninstalling a program from your system. In such a situation, go to the recycle bin and look for the file. If you find the missing Connapi.dll file, simply restore it and then try running your desired program again. If the program runs, then the error is resolved. However, if it still persists, then try other solutions given below.

Solution 2: Update the Drivers

Try updating drivers for hardware devices on the system. To do this, go to the start menu and then Control Panel. Double click on Add or Remove programs icon. Now select incompatible drivers and remove them. After that, restart your PC to activate changes. Now go to the manufacturers’ website to download new drivers and install them on your PC.

Solution3: Scan for Viruses

Another solution is to scan for viruses and malware. Sometimes these can also damage and corrupt dll files on your system. To perform a scan, simply download a powerful antivirus program and run it.

Solution 4: Clean and Restore the Registry

If the error code is still there, then this means the problem is triggered by the registry issues. To resolve it you must clean the registry and remove all the unnecessary and obsolete files like junk files, internet history, temporary files, and cookies. The best way to clean these files instantly is to install Restoro. This is an advanced, cutting-edge, and multi-functional PC Fixer. It has a user-friendly interface and is integrated with powerful utilities like a registry cleaner, anti-virus, and a system optimizer. It is compatible with all Windows versions. The registry cleaning feature scans your entire PC in seconds and detects all the registry issues. It removes all the bad registry entries and unnecessary files. Simultaneously, it also fixes the system files and dll files like Connapi.dll. The anti-virus utility removes all types of malicious software on your system while the system optimizer utility ensures your system performs at its optimum speed. To resolve Connapi.dll error, click here to download Restoro.
Read More
How to Fix: Not a Valid Win32 Application Error

Not a Valid Win32 Application Error - What is it?

Not a Valid Win32 Application error code that indicates either the file or the program you are attempting to run missing or corrupt. And because of this error, Windows is unable to open your desired file or run the program successfully.

Error Causes

The ‘Not a Valid Win32 Application’ is triggered due to multiple reasons such as:
  • Unsuccessful program installation due to damaged disc/CD
  • Corrupted or incompatible file
  • The hard drive is loaded with bad and invalid entries
  • Malware invasion or viral infection
When you come across this error code on your PC, it is advisable to resolve it as it will cause you a great deal of inconvenience hampering program and file accessibility. Furthermore, if the error code occurs due to malware or viruses, then it can lead to severe data security threats and privacy issues.

Further Information and Manual Repair

To resolve the Not a Valid Win32 Application error on your PC, you don’t need to be a technical expert or hire a professional. Though this error might be crucial it is easy to fix. Here are some of the many methods that you can try to resolve this error code on your PC:
  • Check for File Compatibility
If you downloaded a file that is not compatible with your Windows version then you will come across this error. In this case, it is advisable to download the file version that is compatible and can run easily on the Windows version installed on your system. Nonetheless, if the file is compatible but still doesn’t run on your PC, then it’s possible that the file became corrupt during the download. Try downloading the file again.
  • Check if the CD is Clean
You may also come across the Not a valid Win32 application error code if the program installation from the CD is unsuccessful. This happens when the CD is dirty or it is scratched. The program does not copy properly onto the computer from the damaged CD. So, if the CD is scratched and dirty, buy a new CD and try installing the program again.
  • Verify the Program You Want to Run is Still on the Computer
If you are running the program from a shortcut, then verify that the program is still installed on your PC. This error may occur if the program is no longer installed on the computer. If you find the program is not installed on your system, then reinstall and try running the program again.
  • Wrong File Name Issue
Make sure the program or the file you are attempting to run on your system does not contain the same name as the long filename directory it is saved in. For example, running a file named ‘program’ in the ‘program files’ directory can cause errors in some Windows versions. If this is the issue, then try installing the program in a different directory.
  • Repair Hard Drive
If the hard drive is bad or corrupted, it can also generate the not a valid Win32 application. And because of this error files and programs fail to execute successfully as not all data can be read from the hard drive. To repair this issue first you need to run defrag and ScanDisk Microsoft built-in tools. These tools check for errors on the hard drive.
  • Run an Antivirus
If the error code occurs due to a viral infection or malware attack on your system, then you must download an antivirus, scan, and remove such malicious software. However, antivirus may slow down the speed of your PC. So, to resolve speed issues and boost the performance of your system, you may have to download a system optimizer.
Read More
A Quick Guide to Fixing the Stop C00002lA Fatal System Error

Stop C00002lA Fatal System Error- What is it?

C00002lA Fatal System Error is a blue screen of death error that may occur when you start your Windows NT 4.0 based computer. This error causes the screen to turn blue and the system also shuts down. The stop C000021A error message is displayed in the following format:

Stop c000021a {Fatal System Error} The session manager initialization system process terminated unexpectedly with a status of 0xc0000017 (0x00000000, 0x0000000) The system has been shut down.

Error Causes

The stop C000021A error occurs when either Crsrss.exe or Winlogon.exe fails. When the Windows NT kernel identifies that either of these processes has failed, it stops and the error code stop C000021A appears on the computer screen. Here are some of the underlying causes for the stop C0000021A error:
  • The incompatible third-party program
  • Hard disk issues
  • Service pack installation has failed
  • Mismatched system files have been installed
  • Bad and invalid registry keys

Further Information and Manual Repair

To resolve the stop C000021A Fatal System Error on your PC try the following solutions:
  • Remove Incompatible Third Party Programs

If the error occurred after you recently installed a new program, then it is advisable to remove that program. The error occurs due to the incompatibility of the program. To remove the program go to the start menu and click on the control panel. Now click on Add/Remove Program tab and double click on the program name that you recently installed and remove it from the list. Once removed, not reboot your PC. Reinstall a compatible program and run it. It is most likely to resolve the issue. However, if the stop C000021A error still occurs, then it means the problem is critical. It is related to the registry.
  • Repair and Restore the Registry

This procedure is slightly long and tricky. To try it, you need to be technically sound. Here’s what you have to do: first create a parallel installation of Windows NT. Start your PC to the parallel installation and then open the Registry Editor. On the Registry Editor’s Windows menu click HKEY_LOCAL_MACHINE on Local Machine and then click Load Hive. Now type the path %systemroot%system32configsystem into the System hive of the prior installation. Then click open. Here you will be prompted to enter the name of the key, type TEST. Note the setting for the current DWord value in the preceding registry key. This is 0x1 and is denoted by CURRENT:Reg_Dword: 0x1. This value indicated that the Current Control Set for your original Windows NT installation corresponds to ControlSet001 in this window. Now if the value is 2, it indicated that the Current Control Set corresponds to ControlSet002. Now locate the following registry key: HKEY_LOCAL_MACHINETESTControlSetXXXControlSession Manager. XXX is the Current Control Set Value. And delete any pending file rename operation entries. Then click TEST hive and then click Unload Hive. After that again repeat the process, open the registry menu and click load hive, here type the path %systemroot%system32configSoftware to the Software hive of the prior installation and then click open. Now you type TEST 2 when you are prompted for the name of the key. Remove any pending file rename operations entries in the following registry keys: HKEY_LOCAL_MACHINETEST2MicrosoftWindowsCurrentVersionRunOnce HKEY_LOCAL_MACHINETEST2MicrosoftWindowsCurrentVersionRunOnceEx Now click TEST2 hive and then click unload hive. Quit the Registry Editor and then restart your original installation. This will resolve the stop C000021A error.
Read More
1 2 3 171
Logo
Copyright © 2023, ErrorTools. All Rights Reserved
Trademark: Microsoft Windows logos are registered trademarks of Microsoft. Disclaimer: ErrorTools.com is not affiliated with Microsoft, nor claims direct affiliation.
The information on this page is provided for information purposes only.
DMCA.com Protection Status