Re: Run Once

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Terry M (Nospam_at_hotmail.com)
Date: 03/26/04


Date: Thu, 25 Mar 2004 20:20:18 -0800

Well I don't want to disagree with you but I have looked around and cannot
find anyway to get the runonce key to execute without restarting??

In fact if you look at the very definition of what it does it is to run
things silently in the background as the system starts up.

What makes you think the runonce key is happening before a restart? Could
whatever your runonce key is supposed to be doing, is done from somewhere
else making you think it is fromt he runonce key?

Terry

"Bob McBride" <anonymous@discussions.microsoft.com> wrote in message
news:BBB9EE0D-C70B-436D-A3C7-4E3BE2BFB882@microsoft.com...
> I have created an sms installer script which which executes at the client,
adds a command to the RunOnce key in the registry to run after reboot, then
initiates a restart via shutdown.exe with a 25 minute delay. Everything
works fine, however sometimes (not always) the command in the RunOnce key
actuates BEFORE the system shuts down. Does anybdy have any idea what causes
this behaviour and how I can prevent it?
>
> Thanks in advance



Relevant Pages

  • Re: Run Once
    ... then initiates a restart via shutdown.exe with a 25 ... > the command in the RunOnce key actuates BEFORE the system shuts down. ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.sms.installer)
  • Re: Run Once
    ... Is something restarting the shell prior to restart? ... "Terry M" wrote in message ... > What makes you think the runonce key is happening before a restart? ... however sometimes the command in the RunOnce key ...
    (microsoft.public.sms.installer)
  • Re: Run Once
    ... Well I can't think of what would make the HKLM runonce key execute ... Maybe if you post the script someone will look at it and see what's going ... RunOnce key, the command is gone. ... script to restart the box in 25 minutes. ...
    (microsoft.public.sms.installer)
  • Re: Net::SSH serialized commands
    ... I want to execute a command when the first one is complete. ... ("service X restart") ... I need to execute other commands on another ssh connexion. ...
    (comp.lang.ruby)
  • Re: Control installation process after windows restart
    ... > How can I restart computer, and capture the computer after restart? ... > to change login screen to installation progress dialog, ... with a unique name for your program with the command line to execute as the ... The command will not get executed before the ...
    (microsoft.public.win32.programmer.kernel)