Jump to content

logoff/restart/shutdown script? hmm


Recommended Posts

Posted

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]


Posted

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.

Posted

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

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...