Created
June 18, 2020 09:12
-
-
Save mykeels/a271683f9c37a7919297d5df90db648a to your computer and use it in GitHub Desktop.
Powershell script to Disable and Re-enable the "HID-compliant Touch pad" in Windows 10
This file contains hidden or 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
| function global:touchpad() | |
| { | |
| Disable-PnpDevice -InstanceId "HID\SYNA2393&COL02\5&10464366&0&0001" -Confirm:$false | |
| Enable-PnpDevice -InstanceId "HID\SYNA2393&COL02\5&10464366&0&0001" -Confirm:$false | |
| } |
@InTEGr8or For what it's worth, you can run sudo run pwsh to always run as administrator.
And run those commands in interactive mode to avoid default Windows settings keep prompting you cant run them in script or smth...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think a user has to do this
Get-PnpDevice | Where-Object {$_.FriendlyName -like '*touch pad*'} | %{$_.InstanceId}But then, how do you always run as administrator?