Question : HKLM\ RunOnce does not run until login

I have enter the command c:\firstrun.cmd into the HKLM\Software\Microsoft\Windows\CurrectVersion\Runonce key and the program only runs after loggin in I want it to run before login any ideas

Answer : HKLM\ RunOnce does not run until login

I can suggest to run the vbs script from HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
or from the Startup directory in the profile.
The last line of the script can be a "delete" command
 or a line wich delete the key in the registry.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\WinLogon
Add/Modify these keys :
AutoAdminLogon=1
DefaultPassword=AdminPassword
DefaultUserName=AnAdminAccount

You can encrypt your .vbs file.
It will become a .vbe
So do not forget to change any instance .vbs to .vbe in your script.
Script Encoder Link :
http://www.microsoft.com/downloads/details.aspx?FamilyId=E7877F67-C447-4873-B1B0-21F0626A6329&displaylang=en

I created a .vbe with at least thousand lines.
Each ghosted PC can send me a mail before it shutdown.
So i know the subject ;-)
Random Solutions  
 
programming4us programming4us