|
-
June 27th, 2006, 04:52 PM
#1
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?
-
June 27th, 2006, 05:42 PM
#2
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.
-
June 27th, 2006, 05:46 PM
#3
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.
-
June 27th, 2006, 06:43 PM
#4
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.
-
June 27th, 2006, 07:41 PM
#5
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.
-
June 27th, 2006, 11:58 PM
#6
Thanks, I'll look into those.
-
June 28th, 2006, 01:03 AM
#7
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
-
June 28th, 2006, 01:14 AM
#8
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.
-
June 28th, 2006, 02:36 AM
#9
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.
-
June 28th, 2006, 05:55 AM
#10
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
-
Forum Rules
|
|