Created
April 16, 2020 08:38
-
-
Save yushulx/27ecfc190ed091dc6373e43c6558e582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-PnpDevice -FriendlyName *webcam* | |
Get-PnpDevice -FriendlyName *webcam* -Class Camera,image | |
Disable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Image -Status OK).InstanceId | |
Disable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Camera -Status OK).InstanceId | |
Enable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Image -Status Error).InstanceId | |
Enable-PnpDevice -InstanceId (Get-PnpDevice -FriendlyName *webcam* -Class Camera -Status Error).InstanceId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@radershan probably change the commands to
You can firstly check the device name by running
Get-PnpDevice
.