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 +Linux_VMs +Chromium_VM

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
Task Schedule err msg: corrupted task image
I don't use Task Scheduler at all and I've seen this err msg before, so I've never bothered to clean that up. But now I want to do that. The err messages are many, each one popping up with a different task name. But eventually the long string of popups end. You have to click the OK button...
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
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 09:26.
Twitter Facebook Google+