*****************************************************
@c:
@set ENTRY_GUID={46595952-454E-4F50-4747-554944FFFFFF}
@bcdedit -create %ENTRY_GUID% -d "Microsoft Windows 7" -application OSLOADER
@bcdedit -set %ENTRY_GUID% device partition=%SYSTEMDRIVE%
@bcdedit -set %ENTRY_GUID% osdevice partition=%SYSTEMDRIVE%
@bcdedit -set %ENTRY_GUID% systemroot \Windows
@copy \Windows\system32\Winload.exe \Windows\system32\freeload.exe
@bcdedit -set %ENTRY_GUID% path \Windows\system32\freeload.exe
@copy \Windows\system32\ntoskrnl.exe \Windows\system32\goodkrnl.exe
@bcdedit -set %ENTRY_GUID% kernel goodkrnl.exe
@bcdedit -set %ENTRY_GUID% recoveryenabled 0
@bcdedit -set %ENTRY_GUID% nx OptOut
@bcdedit -set %ENTRY_GUID% nointegritychecks 1
@bcdedit -set %ENTRY_GUID% testsigning 1
@bcdedit -displayorder %ENTRY_GUID% -addlast
@bcdedit -timeout 0
@bcdedit -delete {current}
@bcdedit -default %ENTRY_GUID%
@sc config peauth start= demand
@c:
@set ENTRY_GUID={46595952-454E-4F50-4747-554944FFFFFF}
@bcdedit -create %ENTRY_GUID% -d "Microsoft Windows 7" -application OSLOADER
@bcdedit -set %ENTRY_GUID% device partition=%SYSTEMDRIVE%
@bcdedit -set %ENTRY_GUID% osdevice partition=%SYSTEMDRIVE%
@bcdedit -set %ENTRY_GUID% systemroot \Windows
@copy \Windows\system32\Winload.exe \Windows\system32\freeload.exe
@bcdedit -set %ENTRY_GUID% path \Windows\system32\freeload.exe
@copy \Windows\system32\ntoskrnl.exe \Windows\system32\goodkrnl.exe
@bcdedit -set %ENTRY_GUID% kernel goodkrnl.exe
@bcdedit -set %ENTRY_GUID% recoveryenabled 0
@bcdedit -set %ENTRY_GUID% nx OptOut
@bcdedit -set %ENTRY_GUID% nointegritychecks 1
@bcdedit -set %ENTRY_GUID% testsigning 1
@bcdedit -displayorder %ENTRY_GUID% -addlast
@bcdedit -timeout 0
@bcdedit -delete {current}
@bcdedit -default %ENTRY_GUID%
@sc config peauth start= demand
*****************************************************