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

asked on

How to have a VB Script run at startup on Windows 7?

I have a VB Script which does just fine in starting a service that is not started at startup (setting Automatic does not work).  I want the VB Script to run every startup, but cannot see how to do so.  Windows 7 Home Premium does not seem to support gpedit.msc.  All of the Startup folders I can find, even under Users, denies me access to open up the folder and put the script into it.
SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland 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
SOLUTION
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
Possibly run with

Cscript yourfile.vbs too. Also make sure you are putting it somewhere it can be run by system account rather in your profile. E.g. make c:\scripts and check permissions.

Steve
Mike,
Of course, in the Actions tab, set it to run your VBScript:

User generated image
Regards, Joe
Avatar of Mike Caldwell

ASKER

Everything looks right, and Task Scheduler says "Running" but I think it means that it ran the program, not that the service is running, because it is not.  Control Panel / Services shows it to not be running, and it is not.

Attached is screen shots of all pages of the Task Scheduler set up.
Scheduler-Screen-Shots.pdf
ASKER CERTIFIED SOLUTION
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
H if you just need to start a service use this rather than vbscript unless it is doing anything else too.

Net start "service name"

Steve
Thanks fellas; working now.
You're welcome, Mike. That's great news! Regards, Joe