Click Start, and type:
gpedit.msc
hit enter
The path to the logoff script setting is:
Local Computer Policy/Computer Configuration/Windows
Settings/Scripts(Startup/Shutdown/...
It can, of course, be done on a per user basis at:
LCP/User Configuration/...
--
click the Ratings button. Voting helps the web interface.
http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a post''
Mark L. Ferguson
"paroots" <> wrote in message
news:13C19E33-D1A6-4E94-BBC2-...
> Thanks for the responses; they're much appreciated. I googled on
> gpedit.msc
> and discovered that it is a Windows XP feature? Is it available in Vista
> and
> if so, how?
>
> "Mark L. Ferguson" wrote:
>
>> GPEDIT.MSC has a Logoff script feature.
>>
>> --
>> click the Ratings button. Voting helps the web interface.
>> http://www.microsoft.com/wn3/locales...help_en-us.htm see ''rate a
>> post''
>> Mark L. Ferguson
>>
>> "solon fox" <> wrote in message
>> news:d94a950e-6fc7-44f1-9a61-...
>> > On Jun 1, 6:42 am, paroots <paro...@discussions.microsoft.com> wrote:
>> >> I wish to run a task (to dismount a network hard drive) whenever
>> >> shutting
>> >> down. I have noticed that the Task Scheduler has a trigger called, 'On
>> >> local
>> >> disconnect from any user session'. I have setup a task based on this
>> >> trigger,
>> >> but it doesn't execute when I do a shutdown. Any ideas are much
>> >> appreciated
>> >
>> > Great question. I'd just like to point out that at disconnect from
>> > user session is not the same as shutdown. I suspect that shutdown
>> > begins a series of events that simply doesn't wait for your task to
>> > even start let alone finish.
>> >
>> > I would be very interested to learn how to force something to run at
>> > shutdown.
>> >
>> > Unless someone figures it out, why not just run your script at
>> > startup? It seems to me that the end result would be very close.
>> >
>> > -solon fox
>>