1 Rookie

 • 

2 Posts

September 30th, 2024 19:50

hopefully the formatting will be correct this time (sorry, I couldn't figure out how to edit my original post.)

Partial automation:  PowerShell script:

 

# Run as Administrator

# Remove and restore touch screen to correct Error: 10  

# Get the device instance ID for the I2C HID Device Host Controller

$deviceInstanceId = Get-PnpDevice -Class "HIDClass" |  Select-Object -ExpandProperty InstanceId

 

# Get the device instance ID for the I2C HID Device Host Controller. 

# My touch screen is on Intel(R) Serial IO I2C Host Controller - 02E8

$device = Get-PnpDevice | Where-Object { $_.FriendlyName -like "*02E8*" }

# Output the device

Write-Output "Device: $device"

 

# Create deviceInstanceId string

$deviceInstanceId = $device.InstanceId

# Output the device instance ID

Write-Output "deviceInstanceId= " $deviceInstanceId

 

# Check if the device instance ID was found

if ($deviceInstanceId) {

    # Uninstall the touch screen device

    Start-Process -FilePath "pnputil" -ArgumentList "/remove-device `"$deviceInstanceId`"" -NoNewWindow -Wait

    

    Write-Output "remove-device complete.  scan-devices to (re)add the touch screen."

    # Restore the touchs screen device

    pnputil /scan-devices

 

 

} else {

    Write-Output "Device with ID 02E8 not found."

}

No Events found!

Top