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.
LVL 1
Mike CaldwellConsultant to IP industryAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve KnightIT ConsultancyCommented:
Add it to. Hklm Microsoft windows current version run key in regedi or through task scheduler.

Steve
Joe Winograd, Fellow&MVEDeveloperCommented:
Hi Mike,

Create a task in Task Scheduler and in the Triggers tab, set it to run At startup:

run task at startup
Regards, Joe
Steve KnightIT ConsultancyCommented:
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
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Joe Winograd, Fellow&MVEDeveloperCommented:
Mike,
Of course, in the Actions tab, set it to run your VBScript:

actions run vbs
Regards, Joe
Mike CaldwellConsultant to IP industryAuthor Commented:
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
Joe Winograd, Fellow&MVEDeveloperCommented:
> Task Scheduler says "Running" but I think it means that it ran the program

That means the task is running, although it's probably done running, unless there's a problem with your VBS code. Hit the Refresh action in the right panel to have it update the task's status — you'll likely see "The operation completed successfully. (0x0)" in the Last Run Result column. But if not, what was the error code? One other thing: in the General tab, make sure the Run with highest privileges box is ticked.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve KnightIT ConsultancyCommented:
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
Mike CaldwellConsultant to IP industryAuthor Commented:
Thanks fellas; working now.
Joe Winograd, Fellow&MVEDeveloperCommented:
You're welcome, Mike. That's great news! Regards, Joe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.