Jump to content

Script at Shutdown : GPedit.msc OK, with script (reg import) Failed


kercyr
 Share

Recommended Posts

On Windows 7 Pro 64 bits,
I try to build a script_B to be executed at Shutdown. with local Policy without AD.

With GPedit.msc, the script_B at shutdown is executed with success.
With a script_A, using the command "reg import", the script_B is not executed at shutdown and there is no trace of defect or error, and no log.
When I check the registry, eveything is done on 64 bits and 32 bits parts both (wow6432node).
 
--
Contents of the REG file :
----------------------------------------------------------------------------------------------
Windows Registry Editor Version 5.00   
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts]   
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown]   
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown\0]   
"GPO-ID"="LocalGPO"   
"SOM-ID"="Local"   
"FileSysPath"="C:\\Windows\\System32\\GroupPolicy\\Machine"   
"DisplayName"="Stratégie de groupe locale"   
"GPOName"="Stratégie de groupe locale"   
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Machine\Scripts\Shutdown\0\0]   
"Script"="c:\\windows\\system32\\cmd /C C:\\script_B.CMD"   
"Parameters"=""   
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00   
------------------------------------------------------------------------------------------------
 

Link to comment
Share on other sites

On lundi 9 février 2009 at 6:30 PM, SoulA said:

This code works great on Windows XP but not on Vista. Any ideas how to get something like this to work on Vista machines?

 

On mercredi 9 avril 2014 at 9:14 PM, JohnOne said:

Out of curiosity, Why?

 

On samedi 12 avril 2014 at 1:24 PM, j0kky said:

Sorry but it is definetly not what I'm looking for!

 

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
 Share

  • Recently Browsing   0 members

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