title: PowerShell disable and enable a driver
body: <p>Sometimes after restart/coldboot I got a problem with my touchscreen driver in Win8, so I've to restart it manually by now.</p>
  
  <p>So I want to write a script that starts after login, which will disable the driver and enables it again.</p>
  
  <p>I actually found out to find the driver and that I can get a object list of the drivers via:</p>
  
  <pre><code>Get-WmiObject Win32_PnPSignedDriver| select devicename, driverversion | where {$_.devicename -like "I2C*"}
  </code></pre>
  
  <p>But adding "<code>| Disable-Device</code>" to the end of the line will not work.</p>
  
  <p>Can anyone tell me how I have to write the command correctly and start the script like an batch file?</p>