[H] Running a task at shutdown in XP

2006-04-18 Thread Thane Sherrington (S)
I want to use Karen's replicator to replicate files from my laptop to 
my server when I login in the morning, and again when I shutdown at 
night.  I have the login working, with Windows scheduler, but I can't 
figure out the shutdown.  How do I do that?


T



Re: [H] Running a task at shutdown in XP

2006-04-18 Thread Ben Ruset

I think you can create a logoff script in your local Group Policy.

Thane Sherrington (S) wrote:
I want to use Karen's replicator to replicate files from my laptop to my 
server when I login in the morning, and again when I shutdown at night.  
I have the login working, with Windows scheduler, but I can't figure out 
the shutdown.  How do I do that?


T




Re: [H] Running a task at shutdown in XP

2006-04-18 Thread warpmedia
Would that run before or after all your user processes were given the 
kill signal?


I'd like to use that in place of the manual batchshutdown.cmd that I 
call instead of doing a standard shutdown. The batch does some stuff and 
then calls shutdown.exe. The reverse would be useless since user process 
DriveCrypt (for example) would have already terminated.


BTW, the policy paths are:

%windir%\System32\GroupPolicy\Machine\Scripts\Shutdown
%windir%\System32\GroupPolicy\User\Scripts\Logoff

Ben Ruset wrote:

I think you can create a logoff script in your local Group Policy.

Thane Sherrington (S) wrote:
I want to use Karen's replicator to replicate files from my laptop to 
my server when I login in the morning, and again when I shutdown at 
night.  I have the login working, with Windows scheduler, but I can't 
figure out the shutdown.  How do I do that?


T






Re: [H] Running a task at shutdown in XP

2006-04-18 Thread Wayne Johnson

At 02:39 PM 4/18/2006, Ben Ruset typed:

I think you can create a logoff script in your local Group Policy.


I'd create the script so it does all the backup stuff that you want 
then run GRC's wizmo shutdown as the last command line in the script.



--+--
   Wayne D. Johnson
Ashland, OH, USA 44805
http://www.wavijo.com 



Re: [H] Running a task at shutdown in XP

2006-04-18 Thread warpmedia

What is the advantage of wizmo over the stock shutdown.exe?

As to my earlier question about the logoff script happening before or 
after user processes are terminated I guess no one knows, so I will have 
to try it  find out.




Wayne Johnson wrote:

At 02:39 PM 4/18/2006, Ben Ruset typed:

I think you can create a logoff script in your local Group Policy.


I'd create the script so it does all the backup stuff that you want then 
run GRC's wizmo shutdown as the last command line in the script.



--+--
   Wayne D. Johnson
Ashland, OH, USA 44805
http://www.wavijo.com



Re: [H] Running a task at shutdown in XP

2006-04-18 Thread Wayne Johnson

At 10:38 PM 4/18/2006, warpmedia typed:

What is the advantage of wizmo over the stock shutdown.exe?


One is written by MSFT  the other can use the ! as an argument that 
forces the command such as wizmo shutdown! aka as wizmo shutdown damnit. ;-)



--+--
   Wayne D. Johnson
Ashland, OH, USA 44805
http://www.wavijo.com 



Re: [H] Running a task at shutdown in XP

2006-04-18 Thread Wayne Johnson

At 10:38 PM 4/18/2006, warpmedia typed:
As to my earlier question about the logoff script happening before 
or after user processes are terminated I guess no one knows, so I 
will have to try it  find out.


Excerpts from 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shutdown/base/about_system_shutdown.asp



All file-system buffers are flushed to the disk


Logging off stops all processes associated with the security context 
of the process that called the exit function, logs the current user 
off the system


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shutdown/base/shutting_down.asp

Most scripts are associated with users logging off which happens 
before Winders shutting down  to a certain extent you can tell a 
script when to run with RSOP_ScriptPolicySetting 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/policy/policy/rsop_scriptpolicysetting.asp.


This is not to say I wouldn't be interested in seeing what your test 
results yield.


--+--
   Wayne D. Johnson
Ashland, OH, USA 44805
http://www.wavijo.com