Created
March 28, 2021 08:06
-
-
Save 0xm0/3253768836e93f4975d09360bd5d088a to your computer and use it in GitHub Desktop.
PowerShell one-liners to disable/enable PnP keyboard
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
#Disable | |
(Get-PnpDevice | ? { $_.Class -eq 'Keyboard' } | % { $_ | Disable-PnpDevice } | |
#Enable | |
(Get-PnpDevice | ? { $_.Class -eq 'Keyboard' } | % { $_ | Enable-PnpDevice } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment