AllExperts > Experts 
Search      

VB Script

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB Script Answers
Question Library

Ask a question about VB Script
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Miguel Zapico
Expertise
I can answer question about how to use scripts to consolidate data, connect different systems and automate tasks. I have no experience on using VBScript on web programming.

Experience
I have been using VBScript and Windows Scripting Host as my swiss tool for the last 6 years.

Organizations
New York PC users group (NYPC)
Independant Computer Consultants Association (ICCA)

Education/Credentials
Microsoft MCSE in Windows NT

 
   

You are here:  Experts > Computing/Technology > Basic > VB Script > VB Script program running before logon

Follow-Ups to Answer from Expert Miguel Zapico


Hamish writes on 2008-07-09 20:52:08
Finally, I can give something back to the community at large at last.

Yes you can, and you don't need to run it as a service. I do it as part of my PC build images.
However this may be treated as a service by some people.
There are two ways to set it up. Reghack or policy.

The Easy way, is to use the policy editor. Run "mmc %systemroot%system32gpedit.msc"
Navigate to "Comp Config,win settings,scripts,
Startup", add you vbs file here.

The regkey looks like this...
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Startup\0\0\Script".
Note if you have more than 1 script entered, then the last digit increments (eg. 0\1\Script)

I don't use multiple scripts this way, I prefer One script that calls others. That way I know which one is running and when it's running.

I hope this helps.



Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.