• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Execute Code Before Logon Screen

M

mwieder

Guest
#1
Hi - does anyone know how to have some code executed before the logon screen appears (or even while the logon screen is up)?
thanks!
 
M

mwieder

Guest
#2
Thanks for the excellent response - a few clarifications:
1) I cannot just add a new .exe to be run before the USERINIT in the registry string?
2) As I am a novice at Windows programming, could you check I understand what you wrote correctly:
I) I should change the registry key to refelct my .exe instead of the USERINIT
II) my .exe can just be a regular .exe that would run under Windows but it must end with by executing %WinDir%\Userinit.exe.
I will be writing my .exe in VB, so if I misunderstood you can correct me with the propoer VB calls to make. Also, I didn't totally follow why the difference between the two explorer modes is important - does it limit me in the calls I can make or require me to make certain calls?

thanks for all your help!!

:D
 
M

mwieder

Guest
#3
Thanks again!
IN my VB code, will I have any difficult making calls to the winsock control or editing the windows registry since this is going to be executed before a user has logged in?
thanks for your time!
:D
 
M

mwieder

Guest
#4
Looks good, but one small problem - I'm using home and it doesn't come with gpedit.msc - how do I do ensure network is up without using gpedit?
thanks! :)
 
M

mwieder

Guest
#5
Hi - unfortunately, gpedit doesn't work in XP Home - I copied it there and from the run command it gives a "file not found" (even though it's in the system32 directory) When I click on it to launch it gives a 'sanp in failure.' Any word on where in the registry I can find the correct value to modify?
thanks!
 
M

mwieder

Guest
#6
Could you run the sysinternals software and use gpedit to change the setting and find out what it changes? those tools aren't helpful to me since I can't run gpedit so I can't trace what is being changed.
thanks!
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,240
Members
89,017
Latest member
loxioalix