Skip to content

Instantly share code, notes, and snippets.

@mykeels
Created June 18, 2020 09:12
Show Gist options
  • Select an option

  • Save mykeels/a271683f9c37a7919297d5df90db648a to your computer and use it in GitHub Desktop.

Select an option

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
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
Copy link
Copy Markdown

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?

@groutoutlook
Copy link
Copy Markdown

@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