Thread: Surface pen
View Single Post
  #4  
Old October 9th 18, 02:48 AM posted to alt.comp.os.windows-10
Micky
external usenet poster
 
Posts: 1,528
Default Surface pen

In alt.comp.os.windows-10, on Mon, 08 Oct 2018 12:04:00 +0200, Silvio
Galli wrote:


Thanks for the link. I have given a quick glance and it is
interesting.

But before starting to learn scripting and discover at the end of it
that what I want to accomplish is non feasible, could you give me your
opinion about it?
With a script is it possible to uninstall those specific drivers?

Thanks,
Silvio


I think so. First I would google uninstall driver command line

Command line is the secret to many mysteries.

One of the first hits is
https://docs.microsoft.com/en-us/win...command-syntax


PnPUtil Command Syntax

01/30/2018
2 minutes to read
Contributors
Nathan Bazan NabilFates Eliot Graff

To run PnPUtil, open a Command Prompt window (Run as Administrator) and

==== YOu can use a bat file to open a command prompt window. In fact,
it's hard to get one not to. ;-)

type a command using the following syntax and parameters.

Note PnPUtil (PnPUtil.exe) is included in every version of Windows,
starting with Windows Vista (in the %windir%\system32 directory).

pnputil [/add-driver ... | /delete-driver ... |
/export-driver ... | /enum-drivers | /?]

Commands

/add-driver ......

/delete-driver oem#.inf [/uninstall] [/force] [/reboot]

Delete driver package from the driver store.

/uninstall - uninstall driver package from any devices using it.
/force - delete driver package even when it is in use by devices.
/reboot - reboot system if needed to complete the operation.


For examples of how to use the PnPUtil tool, see PnPUtil Examples.
====

The last line of your bat file can be the command that exits windows.

The name of the bat file can be the name of the bat file that Windows is
already set up to run when you exit windows normallyl. I think most
people don't have that bat file. If you do, and I'm sure you don't,
you'd just want to add the language above to that current bat file,
probably at the start of it, so that your stuff and it both run.


On Sun, 7 Oct 2018 12:34:00 -0400, Wolf K
wrote:

On 2018-10-07 11:45, Silvio Galli wrote:
I have problems with my Surface Pro pen since the beginning. Every few
days I loose the connection and the pen stop working.
The only solution suggested by the support team tant works, is to
disinstall the drivers in 'Surface pen settings" and 'Touchscreen
compatible HID' and then restart Windows.

It works, but it's a PITA to make it every few days.

Waiting a driver update that can solve finally the problem, I would
like to write a script to automate the process. I have no experience
in scripting and I don't know if it is possible and where can I find
some basic instruction to write a script.

Thanks,
Silvio


Start he

https://en.wikipedia.org/wiki/Windows_Script_Host


Ads