Link to home
Start Free TrialLog in
Avatar of Mike Caldwell
Mike CaldwellFlag for United States of America

asked on

Visual Basic Script to force a Windows 7 service to start

I have an application that is designed for a tablet, but my PC is a desktop machine.  The application supports pen writing, but I only need it for a "stamp" function.  I always get an error message that "Tablet PC Input Service" is not running.  I have set it to Auto, but when I reboot it goes back to manual.  So I would like a VBScript to force the service on, and I'll set the script to always run at startup.  I am rather experienced with VBS, but no idea as to how to force a service to ON.  I am using Windows 7-64 SP1.
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike Caldwell

ASKER

Code works perfectly!  Note to anyone finding this later in a search:

In Windows 7 the service is titled "Tablet PC Input Service", but that is really a stand-in for what the service is really called:  "TabletInputService".  The first one does not work, gotta use "TabletInputService".  I want this to run automatically at startup, but my version of Windows 7 does not have {gpedit.msc} supported, and all of the startup folders deny me access, so I'll accept this solution for starting the service and make a new request for how to launch at startup.

Thanks again.
You're welcome, Mike. Have a good one.