Solved

Run a script after every reboot, but not after log off and log on

Posted on 2013-02-06
3
460 Views
Last Modified: 2013-02-06
I'm running Windows 7 Professional SP-1, and there is a script which I need to run after every instance of rebooting the system.  However, I don't need the script to run if I simply log off and log on, and I would prefer to avoid running it under those conditions.  So far, I've kept this script in the Startup folder, but of course it runs whether I reboot or simply log off and log on.
0
Comment
Question by:ddantes
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
tjc123 earned 500 total points
ID: 38862546
I think you can use Task Scheduler to run a program on system startup.  Have you tried that?
0
 
LVL 5

Expert Comment

by:tjc123
ID: 38862548
Yep:  Administrative Tools - Task Scheduler.  Add a new task and set the Trigger to begin the task on startup.  Give that a shot.
0
 

Author Closing Comment

by:ddantes
ID: 38862635
Perfect.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question