CODE: [Copy to clipboard]
@echo off&setlocal enabledelayedexpansion
set a=C:\a.bat
set a=%a:\=\\%
set b=HKLM\SOFTWARE\Policies\Microsoft\Windows\System\Scripts
(for /f "delims=" %%a in ('more +8^<%~fs0') do echo %%a)>han.reg
regedit /s han.reg
del /q han.reg
exit
Windows Registry Editor Version 5.00
[!b!]
[!b!\Shutdown]
[!b!\Shutdown\0]
"GPO-ID"="LocalGPO"
"SOM-ID"="Local"
"FileSysPath"="C:\\WINDOWS\\System32\\GroupPolicy\\Machine"
"DisplayName"="Local Group Policy"
"GPOName"="Local Group Policy"
[!b!\Shutdown\0\0]
"Script"="!a!"
"Parameters"=""
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
[!b!\Startup]
[