New
#11
After a closer look at Win 10 Powershell I see it has evolved and the DeviceManager addins are not needed. Big difference between Win 7 PS but I'm learning. The following script toggles touchscreen. If touchscreen is on, it disables it. If touchscreen is off, it attempts to enable it. It requires admin rights and the only qualifying it performs is identifying the touchscreen device. It is quick and dirty and may bomb when PS evolves. Tested and ran in PS ISE.
Code:$TouchScreen = Get-PnpDevice -FriendlyName 'HID-Compliant Touch Screen' if ( $TouchScreen.Status -eq 'OK' ) { $TouchScreen | Disable-PnpDevice -confirm:$false } else { $TouchScreen | Enable-PnpDevice -confirm:$false }