shapeless Posted June 17, 2004 Posted June 17, 2004 there are plenty of places to put startup programs, run, runonce etc + startup folders in profiles. but is there a place in the registry that functions like 'run' but will execute commands when someone logs off/restarts/shutsdown?if it helps to clarify, i made a reg file that clears the Run reg folders in CU and LM, so that programs can never put themselves in there and start up without my knowing, but it will only be useful if i can get the regfile to execute on logoff/restart/shutdown. and if anyone cares, heres what the reg file does[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run][-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
Tadly Posted June 17, 2004 Posted June 17, 2004 I'm not sure about the registry, but I know you can do a shutdown script with Group Policy.Start>Run>gpedit.mscComputer Configuration>Windows Settings>Scripts>ShutdownIf you need it to be a registry hack then you're on you're own as to finding where those scripts might be placed.
shapeless Posted June 17, 2004 Author Posted June 17, 2004 ok maybe not. i tried putting my .vbs file in startup or shutdown, the vbs file then adds a registry entry. but it simply doesn't work.EDIT: NEVER MIND IT WORKS
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now