RunServicesOnce Registry Key
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: RunServicesOnce Registry Key

  1. #1
    King Tutorial-ankhamun
    Join Date
    Jul 2004
    Posts
    897

    RunServicesOnce Registry Key

    Hi all,
    I'm using Windows XP and I've put some stuff in:
    HKLM\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce

    but it never seems to run and the values from this key are never deleted. Anyone else ever have these kinds of issues?

  2. #2
    Senior Member Cemetric's Avatar
    Join Date
    Oct 2002
    Posts
    491
    I seem to recall there was a problem with the run keys in the pre-SP1 era of Windows XP ...Are you running any SP ??

    Also the run registry keys run in a sequence ...maybe something is holding the other back ??

    Any more info available that could help ??

    .C.
    Back when I was a boy, we carved our own IC's out of wood.

  3. #3
    King Tutorial-ankhamun
    Join Date
    Jul 2004
    Posts
    897
    Thanks. I'm runging XP Pro, SP2. I;m trying to add an acount before the login prompt shows up. That way I can have it automagicaly login to the account, do some stuff, then delete the account. If only ghostwalker worked from Pe Builder I would not have to do all of this crap.

  4. #4
    Senior Member Cemetric's Avatar
    Join Date
    Oct 2002
    Posts
    491
    Have you tried with putting the command in the "runservices" instead of the "runservicesonce" key ?? ... They run assynchronously, maybe there's some issue there ?? I'm not sure there's an immediate solution for this. There is a tool in the resource kit that can add a service before logging in ... It's called "srvany" ...maybe that will help ??

    .C.
    Back when I was a boy, we carved our own IC's out of wood.

  5. #5
    Senior Member Cemetric's Avatar
    Join Date
    Oct 2002
    Posts
    491
    I just thought of another service included in the Windows Resource kit ... "autoexnt" ... It allows you to run batch files before logon ... maybe that will help you achieve your goal ...

    .C.
    Back when I was a boy, we carved our own IC's out of wood.

  6. #6
    King Tutorial-ankhamun
    Join Date
    Jul 2004
    Posts
    897
    Thanks, I'll look into those.

  7. #7
    Senior Member
    Join Date
    Oct 2001
    Posts
    748
    Iron- This article says that runservicesonce is not a valid reg key for XP, Windows 2000, and NT4.

    It only worked with 95 and 98.

    Why not just use the \RunOnce key?

    http://msdn.microsoft.com/library/de...istry_keys.asp

  8. #8
    King Tutorial-ankhamun
    Join Date
    Jul 2004
    Posts
    897
    Thanks, I've read a few places where is said it only works in 9x, but other places say to check it for malware even in XP. RunOnce won't work for me because I need it to run before a logon happens, this way I can create and account to do my script stuff with. What I may end up doing is asking Sala to add command line options to his Password Renew tools.

  9. #9
    Senior Member
    Join Date
    Oct 2001
    Posts
    748
    You could write your program into a batch file and then convert that batch file into an exe using batch2exe.

    Then register the .exe as a service. If you want it to run only once, make the last command of the batch file unregister the service. This way when you reboot, the service no longer exists and doesn't run.


    You may also want to play with group policy objects, run at startup, and msconfig. http://support.microsoft.com/?kbid=314488 although I think this is also a start at user login configuration.

  10. #10
    Senior Member
    Join Date
    Nov 2001
    Posts
    4,786
    i just checked CurrentControlSet\services and some of the crap i have installed runs services from program files unquoted. depending on what you have installed you could use batch2exe call it program and put it in c:\
    Bukhari:V3B48N826 “The Prophet said, ‘Isn’t the witness of a woman equal to half of that of a man?’ The women said, ‘Yes.’ He said, ‘This is because of the deficiency of a woman’s mind.’”

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •