First, modify the registry, in order to secure the registry, it is recommended to back up the registry in advance
1, first open the Start menu of the running dialog box, and then enter "regedit", click OK to open the registry;
2, then expand the [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows ntcurrentversionimage File Execution Options] item in turn;
3, then delete the following existing items, if there is deleted, after the deletion of the registry can be closed.
Cmd.exe
Cmd.com
Msconfig.exe
Msconfig.com
360safe.exe
Avp.com
Avp.exe
Adam.exe
EGHOST.exe
IceSword.exe
Iparmo.exe
Kabaload.exe
KRegEx.exe
KvDetect.exe
Kvmonxp.kxp
Kvxp.kxp
MagicSet.exe
Mmsk.exe
NOD32.exe
PFW.exe
PFWLiveUpdate.exe
QQDoctor.exe
Ras.exe
Rav.exe
RavMon.exe
Regedit.exe
Regedit.com
Regedt32.exe
Runiep.exe
SREng.EXE
Trojdie.kxp
WoptiClean.exe
Second, or you disable the command prompt's functionality, you can open Local Group Policy, expand User Configuration-Administrative Templates-system options, locate and double-click the block Access command prompt item in the right window, and select Not configured.