Help: press any key to shutdown in fastboot

Search This thread

machikaa

Member
Jan 17, 2021
6
5
This worked for me and I hope the same goes for you all as well (
without using USB HUB and USB 2 port
).

I found the solution here .

Scenario:
1) Phone not detected with fastboot devices command
2) Phone goes into "Press any key to shutdown"
3) Just download this .bat file and run it as administrator
4) Remove your phone, get it back into fastboot mode (Power + Volume Down), connect it again
5) Open CMD and try to run any fastboot command & they'll run successfully.

P.S.: I too got my POCO F1 unlocked by using this with the modded MI Unlock app. Was tired of trying usb hub and extension thing though my PC is intel and not amd. It'll be happy to know how and what made it worked from technical aspect. Thank You.
 
  • Like
Reactions: francisco.leandro

Louk_Magic32

New member
Aug 18, 2018
1
2
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
You saved my life! I spent 6 HOURS searching for the damn fastboot errors! God bless you!
 

KSSKTEJA

Member
Nov 29, 2012
37
1
Hyderabad
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Oh my god dude you are a rockstar, it worked for me <3 Thank you so much!
 

francisco.leandro

New member
Apr 20, 2021
1
0
Isso funcionou para mim e espero que o mesmo se aplique a todos vocês (
sem usar HUB USB e porta USB 2
).

Eu encontrei a solução aqui.

Cenário:
1) Telefone não detectado com o comando fastboot devices
2) O telefone vai para "Pressione qualquer tecla para desligar"
3) Basta baixar este arquivo .bat e executá-lo como administrador
4) Remova o telefone, coloque-o de volta no modo de inicialização rápida (liga / desliga + diminuir volume) e conecte-o novamente
5) Abra o CMD e tente executar qualquer comando fastboot e eles serão executados com sucesso.

PS: Eu também desbloqueei meu POCO F1 usando-o com o aplicativo MI Unlock modificado. Estava cansado de tentar hub USB e coisa de extensão embora meu PC seja Intel e não AMD. Ficarei feliz em saber como e o que fez funcionar do ponto de vista técnico. Obrigado.
Salvou minha vida, muito obrigadooo!!
 

shafi1885

Member
Apr 18, 2021
39
14
Xiaomi Mi 3
Xiaomi Mi 9 SE
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
poeple, who have switched between usb port 2 & 3 but still didn't work , run this script as administrator removing second bracket saving as bat file. It worked for me and my friend also.
worked on : windows 10, amd ryzen 5 3600
worked for: mi 9 se, poco phone f1

and really really thank you for this code. <3
 

techolik

New member
May 5, 2021
1
0
Mate, in most cases, this is the issue of MIUI Fastboot not being compatible with USB 3.0 ports. The solution is to use a USB 2.0 port instead or, in cases where you only have USB 3.0 ports, connect the device through a USB hub and you are good to go.

You are an living angel! I was doubtful cause the hub I have is USB 3, but it helped
 
May 3, 2020
5
1
Run this Fix as admin for users facing following issues ( for AMD Ryzen, Intel users running windows )

1. Press any key to shutdown

2. Not detecting on mi flash / mi flash unlock tool / fastboot tool

3. Usb 3.0, 3.1 not detecting

Find the file below :
USB fix



File source :
 

nobody24

New member
Jul 27, 2021
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
bro ;-; i love you bro Thank you soo much
 

Saurav372

New member
Sep 13, 2021
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thanks
 

dadadam9999

New member
Oct 19, 2021
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
thank you sir, the only solution that works for my android
 

Vishal1272

Member
Mar 4, 2018
5
1
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thank you legend!
 

Detlas' Legacy

New member
Feb 12, 2020
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thank you you absolute legend!
 
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thanks it works for me ☺️
 

florescasonny

Member
Dec 28, 2018
8
0
Dasmarinas
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thanks for the solution mate.
 

tiklupxxda

New member
Mar 20, 2022
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
it works on USB 3.0 but can someone explain the reason???
 

samashok

Member
Jul 26, 2014
10
1
28
Ernakulam
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Thank you, it works :)
 

unboxparadigm

New member
Apr 15, 2022
1
0
Redmi Note 10 Pro
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
Just made an account so that I could say thank you. Have a good day :)

Edit: The device was a Poco F1 and the PC was AMD based (not sure if that has got anything to do with it). Either way, USB 2.0 and this .bat file did the job for me. Hoping to breathe some life in to my aging Poco F1 with the Pixel Experience Rom. Fingers crossed.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    try this solution:
    use a USB 2 port
    create a new txt file,write code in the { } below
    {
    @Echo off
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


    pause
    }
    then save this file and rename it as a .bat file
    right click and run as administrator.
    after that the issue can be fixed
    12
    New laptop and the same problem. Solved with HUB USB.
    5
    i switched to USB 2.0 port and it worked!
    2
    try this solution:
    use a USB 2 port
    create a new txt file,write code in the { } below
    {
    @Echo off
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


    pause
    }
    then save this file and rename it as a .bat file
    right click and run as administrator.
    after that the issue can be fixed
    You saved my life! I spent 6 HOURS searching for the damn fastboot errors! God bless you!
    2
    Edit: mobile Redmi note 5(china AI version)
    When in fast boot, if you pass any command through PC (Cmd or Xiaomi Tool or MiFlash Tool) mobile immediately says press to shutdown.
    Commands are not working in fastboot mode. phone connects and i can hear the connected sound, then as soon as 1st command is passed or MiFlash tool tries to connect, this message appears.
    Cant install Twrp, Stock Rom, cant try to unlock Bootloader again.
    background: i had twrp installed. then after sometime i checked and twrp was replaced with stock recovery so i installed twrp again and flashed RR Rom. but didnt like that so installed Miui Stock rom using Twrp. few days later Twrp is replaced again and i cant install anything through fastboot. help please. i am willing to reset whole device to its 1st initial form.

    180130xtte35jtjej4it1j.jpg

    reinstall adb drivers. https://androidfilehost.com/?fid=746010030569952951
    try other usb ports