Jump to content

logoff/restart/shutdown script? hmm


shapeless

Recommended Posts

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]

Link to comment
Share on other sites


I'm not sure about the registry, but I know you can do a shutdown script with Group Policy.

Start>Run>gpedit.msc

Computer Configuration>Windows Settings>Scripts>Shutdown

If you need it to be a registry hack then you're on you're own as to finding where those scripts might be placed.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...