1. Run the Shell:startup command as follows:
2, create the Bat shortcut, add the shortcut to, C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup directory
3. Edit the registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run as follows:
Write the registry script (save the following code as a. reg file):
Adding boot scripts to the registry
@Echo OFFSETLOCALCD/d%~dp0set"ump_home=%cd%"Set"Ump_bin=%ump_home%\ump_start.bat"REG ADD"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"/V"Autostartump"/T REG_SZ/D"%ump_bin%"/Fecho Add Umpserver to StartMenu of system successfully ....if "%2"NEQ"-NP"@pause
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"/V "autostartump"/t reg_sz/d "%ump_bin%"/F, is added to the registry
To remove the boot entry from the registry
@"hklm\software\microsoft\windows\currentversion\run" /V autostartump/ Fecho Delete umpserver from StartMenu of system successfully .... if " %2 " " -NP " @pause
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"/V Autostartump/F, is to delete the boot entry in the registry
4. Edit the local Group Policy gpedit.msc as follows:
Windows boot up BAT file