New
#1
How to Add Webcam to Windows 10 VM on Hyper-V
This is assuming you have installed a Windows 10 VM running on a Windows 10 Hyper-V host. It further assumes that you have enabled Enhanced Sessions and can connect to the Enhanced Session (vmconnect.exe). (this means that you have enabled Guest Services in the settings for your vm and are NOT auto-logging in)
These instructions may work with other configurations, but your mileage may vary. For completeness, I used Windows 10 Pro (20h2) as both host and vm for this. I am using a Logitech Brio USB 3.0 webcam as well as Zoom videoconferencing. I didn't want either active on the host. Keep in mind, your webcam will not be available to the host while it's connected to the vm.
Lastly, I took the time to do this write-up because there were several incomplete and incorrect tutorials on the internet (including hacking the registry, modifying many policies, using rdp instead of vmconnect, adding RemoteFX cards to the vm, and paying for USB over ethernet services). Even though the policy we'll edit is talking about RDP, rest assured we will be connecting with vmconnect (like normal).
The correct way (details below) is simple. It will take the average power user about ten minutes.
If you have tried many different things so far, and you don't have success with these instructions, consider a new scratch install if time allows and is practical to do so.
Lastly, I am posting this write-up here on TenForums because I have been helped by posts (and tutorials) here across the years and is my way of contributing something unique and valuable.
If this was helpful, consider contributing a thread of your own someday.
INSTRUCTIONS
Shutdown the VM (shutdown, not pause, not save).
On the host:
click the Start menu and type "group" - select "Edit group policy"
in the left pane of the editor, navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Connection Client > RemoteFX USB Device Redirection.
ENABLE the "Allow RDP redirection of other supported RemoteFX USB devices from this compgter" policy.
REBOOT the host. Don't skip this "just to see if it will work," actually reboot the host.
Once the computer is restarted and you have logged in to the host, open the Hyper-V Manager and "Connect" to the Windows 10 VM you're working with.
If you don't see the connection window, use the "Edit Session Settings" from the right-pane of the Hyper-V Manager (have the proper VM selected) OR if that doesn't work, you can force it from an administrative Powershell command:
(put your vm's name in quotes if it contains a space)Code:vmconnect localhost YOURVMNAME /edit
Once the connection window appears, click "more options," then on the "Local Resources" tab, click "More." Expand "Other supported RemoteFX USB devices" and check the box next to your webcam. Click "OK" and then "Connect."
Here are some shots of how the connection window looks...
Simply log in to your vm and configure Zoom or Teams or whatever app you will be using!
I hope this has been helpful!
modc