Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Is there a trigger for a task schedule to shutdown

18 Apr 2016   #1

Win 7 Prof x64 and Win 7 Ult
Is there a trigger for a task schedule to shutdown

I want to ensure that when I shutdown certain critical files have been copied to an alternate location.
I have viewed a great number of tips and tutorials which show how to create a shutdown task.
Shut Down Windows Alt+F4 Window - Change Default Action
Shut Down Computer Shortcut - Create
but fail to see how these are triggered.

Is it just changing the shutdown.exe to do the comparison of the files last written date/time, doing a copy if alternate location file is not the current file date/time?

My System SpecsSystem Spec
18 Apr 2016   #2

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64

You might be able to use Group Policy to run a shutdown script.
Here are a couple of MS technet articles about this:

I've never done this, so you would have to play with it to see if it can do what you want.
My System SpecsSystem Spec
18 Apr 2016   #3

Windows 7 Home Premium 64bit 6.1 Build 7601 (SP1)

Here's an article that uses backup as an example:

Run Scripts At Shutdown in Windows 7

It sounds like you need confirmation that the files have copied; if you figure that out I'd sure love to see how you implemented it MacNala.

My System SpecsSystem Spec

19 Apr 2016   #4

Win 7 Prof x64 and Win 7 Ult

Am I reading more into your reply than first appears?
Are you suggesting that there is Gotcha I should look out for?
e.g. The file stamps such lastwrittentime might not be up to date?..
I am going to attempt this in Powershell and if successful will report back.
My System SpecsSystem Spec

 Is there a trigger for a task schedule to shutdown

Thread Tools

Similar help and support threads
Thread Forum
need task schedule with event data, not just ID for trigger
I need to differentiate two tasks that use the same event ID but data is different. Any suggestions? Thanks, Ray
Task Scheduler recognizes only first trigger
Hi, the problem is if I create a new task for the task scheduler which is having multiple triggers, only the first entered trigger is recogized and used. E.g., I have two weekly triggers to execute a program. The first selects Mon, Tue, Wed, Thu, and Fri to run the program. The second...
Performance & Maintenance
How to trigger 'task scheduler' on new wifi connection?
Hey everyone, Searched everywhere, and really striking out on how to do this (if it's even possible). I'd like to use Task Scheduler (or some other program) to automatically perform a task when my Android phone connects to my home wifi network (my PC is plugged into this router). Is there a...
Network & Sharing
Help with using idle trigger in Win Task Scheduler
OK I know i've bombarded the forums lately with a couple threads all somewhat related. Point of this thread -- how to correctly set the idle trigger in windows task scheduler. There is a MSFT article Task Idle Conditions (Windows) which tries to explain it, but I can't figure it out. I...
Performance & Maintenance
Task Scheduler Trigger @ Program shutdown
Hello, I would like a particular Task to run each time the Firefox application is closed, or, perhaps easier, each time my computer shutdowns. But I have no idea how to set up such Trigger. Have any of you an idea on how I should proceed? Thanks for the help.
Performance & Maintenance
schedule a task to trigger on firefox's launch
I want to schedule a task to launch when I open Firefox 3.6.4, but I can't understand the options that I need to change. Can someone give me directions as to where I can find the menu option to use Firefox as the trigger (see menu below to see where I was searching for FF)?

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:07.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App