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