Created
February 1, 2019 18:12
-
-
Save M3T4L5T3F/b1e00a43a2a8f99a507632fd30ebd023 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
#This gist contains example code and is not a functional powershell script. Enjoy! | |
# | |
# @M3T4L5T3F | |
# 20190201 | |
# | |
#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