for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %Hrundll32.exe keymgr.dll,KRShowKeyMgr