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.
Asked
Active
Viewed 1,186 times
0

MatBanik
- 379
- 3
- 7
- 28
-
Do you mean the local group policy editor or domain based policy? – joeqwerty Jan 28 '12 at 16:35
-
Yes sorry for the weak description. – MatBanik Jan 28 '12 at 16:38
-
All that `regedit` would do is directly manipulate the registery keys that the local security policy or group policy consoles would. I recommend using those tools instead. – MDMarra Jan 28 '12 at 17:22
1 Answers
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