0

Is there any way to run script before the computer running Windows 7 or 2008 shuts down without using local group policy editor or domain based policy? Regedit tool should be OK if possible.

MatBanik
  • 379
  • 3
  • 7
  • 28

1 Answers1

3

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown

this is the location I think you are looking for.

tony roth
  • 3,884
  • 18
  • 14
  • When I go to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\" I do not see any "Scripts" key under Windows 7. – MatBanik Jan 28 '12 at 17:53
  • do this use the local policies tool to create the proper key then just copy the results. – tony roth Jan 28 '12 at 18:15
  • I can seem to be able to fined Local Policy Tool. Only thing I have is Local Security Policy Tool. – MatBanik Jan 28 '12 at 18:19
  • MMC... File... Add/Remove Snap-in... Group Policy Object Editor... Add... Local Computer... Finish... OK – joeqwerty Jan 28 '12 at 19:45