What a hassle. After some hours of work, I figured it out and managed to get rid of the ghost virtual camera listings. It came down to having to force removing registry editor values via an unusual approach, luckily though with just Microsoft software instead of possibly unreliable tools.
For me, on a Windows 11 machine, the following did not help:
- uninstalling regularly (also reinstalling and retrying)
- running the virtualcam-uninstall.bat file elevated with admin permissions
- removing all obs files and folders in Program files
I ended up removing keys from the Registry, and after some big hurdles were thrown here, as I could not see or delete the values of a certain key (under OBS VCAM keys), and making myself owner / changing permissions while running RegEdit as an administrator also did not help, I managed to do it. What I had to do was use Microsoft's PsExec to force remove certain files.
Steps:
- Open "Registry editor" by looking it up in the start menu via "regedit"
- Open/run it as Administrator
- Via Edit (menu) > Search, find the possible values, using terms such as "Obs Virtual", "Virtual Cam", "VCAM". (at some point I even lost the Obs Virtual Cam name after removing a certain value from one of the registry keys, and the Virtual Cam was temporarily renamed to something like "As V Cam").
- Before making any changes, just to be sure to backup the regedit file by doing a complete export of the registry (File (menu) > Export) and storing it in a folder you will remember. The file should be roughly around 0.5GB big (mine was around 0.65GB). If you have things like Bitlocker enabled, maybe suspend that to for 1 session. Just in case things go wrong you can more easily resolve.
- Try to delete the whole key. I deleted this {40568484-56a9-4865-b6cc-7a39f7d02837} key/folder located under:
-- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{40568484-56a9-4865-b6cc-7a39f7d02837}
- That's because it had values such as:
-- HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{40568484-56a9-4865-b6cc-7a39f7d02837}\##?#SWD#VCAMDEVAPI#2DCAB8D7BF672C0EB2FFA3869573B7ECC2BCE579BB87DAFFEF22C04AA0127B54#{40568484-56a9-4865-b6cc-7a39f7d02837}
-- In Teams, due to this, I saw "Obs Virtual Camera" (even though OBS was already uninstalled as it did not work for which I hoped it would work (partial screen sharing in Teams).
- I tried to delete it via Registry editor normally.
-- Got "
Error While Deleting Key" message
- I tried to delete the via Command prompt elevated with Administrator permissions:
-- reg delete HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{40568484-56a9-4865-b6cc-7a39f7d02837}\##?#SWD#VCAMDEVAPI#2DCAB8D7BF672C0EB2FFA3869573B7ECC2BCE579BB87DAFFEF22C04AA0127B54#{40568484-56a9-4865-b6cc-7a39f7d02837}\#{FCEBBA03-9D13-4C13-9940-CC84FCD132D1} /f
-- Got this result: ERROR: Access is denied.
- This issue was this "Properties" folder that I could not access nor could give myself as administrator permission to.
- Via
https://www.minitool.com/news/fix-error-while-deleting-key-2.html Step 4, I ended up using PsExec, which is Microsoft software via
https://learn.microsoft.com/en-us/sysinternals/downloads/psexec.
- I downloaded PsExec, extracted all to a folder.
- Then opened a Command prompt window elevated as administrator and navigated to this folder (cd c:\foldername (look it up if you don't know how to navigate directories via command prompt))
- Then ran: psexec -i -d -s c:\windows\regedit.exe
-- This basically opens the Registry editor again (but apparently differently).
- Then tried removing that folder/key {40568484-56a9-4865-b6cc-7a39f7d02837} at HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{40568484-56a9-4865-b6cc-7a39f7d02837} again, and it worked, YAY!
- Straight away, after opening Teams again, it was not showing this Virtual camera anymore.
Take into account that the UID's you see in my examples such as 40568484-56a9-4865-b6cc-7a39f7d02837} are just random numbers/examples. I do not expect you will have the same ID's
What a horrible thing to figure out. Although undoubtedly great, I am never installing this software again I think.