1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

batch file to run prior to logon (vista home premium)

Discussion in 'Windows Vista' started by Smiler, May 8, 2009.

  1. Smiler

    Smiler Guest

    Hi,
    Can any one tell me how to run a batch file prior to windows logon vista
    home premium.
    I have a few problems with my motherboard and my cmos battery is unsoldered
    and my battery is knackered. At present I have a batch file to set date and
    time in my startup folder but would like to do it before this as programs
    are loading and trying to initialise before the correct date and time set,
    this causes errors.
    Many thanks
    micosmiling
     
  2. Dave-UK

    Dave-UK Guest

    "Smiler" <zzz@zzz.com> wrote in message news:eEsnFf$zJHA.5288@TK2MSFTNGP03.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hi,
    > Can any one tell me how to run a batch file prior to windows logon vista
    > home premium.
    > I have a few problems with my motherboard and my cmos battery is unsoldered
    > and my battery is knackered. At present I have a batch file to set date and
    > time in my startup folder but would like to do it before this as programs
    > are loading and trying to initialise before the correct date and time set,
    > this causes errors.
    > Many thanks
    > micosmiling
    ><!--colorc--><!--/colorc-->

    What about running it from one of the start-up locations in the registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    Other entries there will show you the name and path data format.
     
  3. Smiler

    Smiler Guest

    Hi,
    Yes I've tried that as well(somewhere in the registry I did it) but still
    get all programs loading at the same time.Don't want to delay any programs
    either as its a slow boot time as it is
    .. Really need it prior to the login even after bios screen before windows
    loads.Just not sure how to do this.
    Thanks for the suggestion though.
    micosmiling

    "Dave-UK" <here@home.com> wrote in message
    news:-7OdnXDX9sxlGZnXnZ2dnUVZ8vmdnZ2d@giganews.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    > "Smiler" <zzz@zzz.com> wrote in message
    > news:eEsnFf$zJHA.5288@TK2MSFTNGP03.phx.gbl...<!--coloro:green--><span style="color:green <!--/coloro-->
    >> Hi,
    >> Can any one tell me how to run a batch file prior to windows logon vista
    >> home premium.
    >> I have a few problems with my motherboard and my cmos battery is
    >> unsoldered and my battery is knackered. At present I have a batch file to
    >> set date and time in my startup folder but would like to do it before
    >> this as programs are loading and trying to initialise before the correct
    >> date and time set, this causes errors.
    >> Many thanks
    >> micosmiling<!--colorc--><!--/colorc-->
    >
    > What about running it from one of the start-up locations in the registry:
    > HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun
    > Other entries there will show you the name and path data format.
    >
    > <!--colorc--><!--/colorc-->
     
  4. a_ok2me

    a_ok2me Guest

    Smiler;1249516 Wrote: <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hi,
    > Can any one tell me how to run a batch file prior to windows logon
    > vista
    > home premium.
    > I have a few problems with my motherboard and my cmos battery is
    > unsoldered
    > and my battery is knackered. At present I have a batch file to set date
    > and
    > time in my startup folder but would like to do it before this as
    > programs
    > are loading and trying to initialise before the correct date and time
    > set,
    > this causes errors.
    > Many thanks
    > micosmilingI'm on the same boat.<!--colorc--><!--/colorc-->


    --
    a_ok2me
    Posted via
     
  5. Saucy

    Saucy Guest

  6. a_ok2me

    a_ok2me Guest

    Saucy, that's how I ended up here. Notice the 8th result in your link
    leads us to this thread here.

    Saucy;1552793 Wrote: <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > 'Let me google that for you'
    > ()
    >
    > Saucy
    >
    >
    > "a_ok2me" <a_ok2me.3y27g6@no-mx.forums.vistaheads.com> wrote in
    > message
    > news:a_ok2me.3y27g6@no-mx.forums.vistaheads.com...<!--coloro:green--><span style="color:green <!--/coloro-->
    > >
    > > Smiler;1249516 Wrote:<!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    > >> Hi,
    > >> Can any one tell me how to run a batch file prior to windows logon
    > >> vista
    > >> home premium.
    > >> I have a few problems with my motherboard and my cmos battery is
    > >> unsoldered
    > >> and my battery is knackered. At present I have a batch file to set<!--colorc--><!--/colorc--><!--colorc--><!--/colorc-->
    > date<!--coloro:green--><span style="color:green <!--/coloro--><!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    > >> and
    > >> time in my startup folder but would like to do it before this as
    > >> programs
    > >> are loading and trying to initialise before the correct date and<!--colorc--><!--/colorc--><!--colorc--><!--/colorc-->
    > time<!--coloro:green--><span style="color:green <!--/coloro--><!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    > >> set,
    > >> this causes errors.
    > >> Many thanks
    > >> micosmilingI'm on the same boat.<!--colorc--><!--/colorc-->
    > >
    > >
    > > --
    > > a_ok2me
    > > Posted via

    > ><!--colorc--><!--/colorc--><!--colorc--><!--/colorc-->


    --
    a_ok2me
    Posted via
     
  7. Saucy

    Saucy Guest

    My apologies. It is a more complicated question.

    I looked into autoexec.bat, the registry key RunServices etc. etc and tried
    things out. Nothing has run yet.

    This is what bugs me about the Home editions .. they are sort of crippleware
    ... and why I don't usually run them myself, always looking to get a
    Professional / Ultimate / or Business version. I did the pre-order thing for
    Windows 7 and got Professional at half price.

    Saucy


    "a_ok2me" <a_ok2me.3y2lc2@no-mx.forums.vistaheads.com> wrote in message
    news:a_ok2me.3y2lc2@no-mx.forums.vistaheads.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    > Saucy, that's how I ended up here. Notice the 8th result in your link
    > leads us to this thread here.
    >
    > Saucy;1552793 Wrote:<!--coloro:green--><span style="color:green <!--/coloro-->
    >> 'Let me google that for you'
    >> ()
    >>
    >> Saucy
    >>
    >>
    >> "a_ok2me" <a_ok2me.3y27g6@no-mx.forums.vistaheads.com> wrote in
    >> message
    >> news:a_ok2me.3y27g6@no-mx.forums.vistaheads.com...<!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >> >
    >> > Smiler;1249516 Wrote:
    >> >> Hi,
    >> >> Can any one tell me how to run a batch file prior to windows logon
    >> >> vista
    >> >> home premium.
    >> >> I have a few problems with my motherboard and my cmos battery is
    >> >> unsoldered
    >> >> and my battery is knackered. At present I have a batch file to set<!--colorc--><!--/colorc-->
    >> date<!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >> >> and
    >> >> time in my startup folder but would like to do it before this as
    >> >> programs
    >> >> are loading and trying to initialise before the correct date and<!--colorc--><!--/colorc-->
    >> time<!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >> >> set,
    >> >> this causes errors.
    >> >> Many thanks
    >> >> micosmilingI'm on the same boat.
    >> >
    >> >
    >> > --
    >> > a_ok2me
    >> > Posted via

    >> ><!--colorc--><!--/colorc--><!--colorc--><!--/colorc-->
    >
    >
    > --
    > a_ok2me
    > Posted via

    > <!--colorc--><!--/colorc-->
     
  8. Brad_C

    Brad_C Guest

    You can use the task scheduler to run a program before windows logon. I
    am using Vista Home Premium, and had some trouble doing this at first,
    but I figured it out tonight.

    The Vista home versions do not cache user credentials when the system
    is shutdown. If you create a task to run at system startup with your
    user account, it will not work. Since the user credentials are not
    cached, the system restart will cause the task to fail with a
    credentials error.

    The solution is to run the task with the SYSTEM user - instead of a
    user account you create on the computer.

    - Create a task
    - On the general tab, click "change user or group"
    - Type in "SYSTEM" into the object name text area
    - Click OK
    - Create a trigger to run "at startup"
    - On the actions tab, setup your script/program to run

    Alternatively, you could use "LOCAL SERVICE" instead of "SYSTEM". They
    both work for me.
     
  9. a_ok2me

    a_ok2me Guest

    Brad_C;1561535 Wrote: <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > The solution is to run the task with the SYSTEM user - instead of a
    > user account you create on the computer.
    >
    > - Create a task
    > - On the general tab, click "change user or group"
    > - Type in "SYSTEM" into the object name text area
    > - Click OK
    > - Create a trigger to run "at startup"
    > - On the actions tab, setup your script/program to run
    >
    > Alternatively, you could use "LOCAL SERVICE" instead of "SYSTEM". They
    > both work for me.I thought I tried it as SYSTEM and it did not work, but I'll try again.<!--colorc--><!--/colorc-->
    -thanks


    --
    a_ok2me
    Posted via
     

Share This Page