[Android General] xdabushrang3r:
Thanks for this tool.

I'm trying to install and use it but this is happening.

Install seems to succeed.

Starting Installation
Creating temp folder
Downloading the latest adb and fastboot tools
Downloading latest usb drivers
Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/google64
inf', 'google64inf')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/google86
inf', 'google86inf')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/Stringsv
als', 'Stringsvals')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/kmdf', '
kmdf')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/Latest A
DB Launcher.bat', 'Latest ADB Launcher.bat')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/fetch_hw
id.ps1', 'fetch_hwid.ps1')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/Latest-adb-fastboot-installer-for-windows/master/files/devcon.e
xe', 'devcon.exe')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

Uninstalling older version
Installing the files
Installing USB drivers
The term '.\fetch_hwid.ps1' is not recognized as the name of a cmdlet, function
, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At line:1 char:17
+ .\fetch_hwid.ps1 <<<<
+ CategoryInfo : ObjectNotFound: (.\fetch_hwid.ps1:String) [], Co
mmandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Get-Content : Cannot find path 'C:\Users\trg\Desktop\Latest-adb-fastboot-instal
ler-for-windows-master\temporarydir\Stringsvals' because it does not exist.
At line:1 char:3
+ gc <<<< Stringsvals | Add-Content usb_driver\android_winusb.inf
+ CategoryInfo : ObjectNotFound: (C:\Users\trg\De...dir\Stringsva
ls:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
ntentCommand

Get-Content : Cannot find path 'C:\Users\trg\Desktop\Latest-adb-fastboot-instal
ler-for-windows-master\temporarydir\google64inf' because it does not exist.
At line:1 char:83
+ (gc usb_driver\android_winusb.inf | Out-String) -replace '\[Google.NTamd64\]'
, (gc <<<< google64inf | Out-String) | Out-File usb_driver\android_winusb.inf
+ CategoryInfo : ObjectNotFound: (C:\Users\trg\De...dir\google64i
nf:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
ntentCommand

Get-Content : Cannot find path 'C:\Users\trg\Desktop\Latest-adb-fastboot-instal
ler-for-windows-master\temporarydir\google86inf' because it does not exist.
At line:1 char:81
+ (gc usb_driver\android_winusb.inf | Out-String) -replace '\[Google.NTx86\]',
(gc <<<< google86inf | Out-String) | Out-File usb_driver\android_winusb.inf
+ CategoryInfo : ObjectNotFound: (C:\Users\trg\De...dir\google86i
nf:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
ntentCommand

Get-Content : Cannot find path 'C:\Users\trg\Desktop\Latest-adb-fastboot-instal
ler-for-windows-master\temporarydir\kmdf' because it does not exist.
At line:1 char:76
+ (gc usb_driver\android_winusb.inf | Out-String) -replace '\[Strings\]', (gc <
<<< kmdf | Out-String) | Out-File usb_driver\android_winusb.inf
+ CategoryInfo : ObjectNotFound: (C:\Users\trg\De...mporarydir\km
df:String) [Get-Content], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetCo
ntentCommand

Downloading unsigned driver installer tool
Exception calling "DownloadFile" with "2" argument(s): "The underlying connecti
on was closed: An unexpected error occurred on a send."
At line:1 char:40
+ (New-Object Net.WebClient).DownloadFile <<<< ('https://raw.githubusercontent.
com/fawazahmed0/windows-unsigned-driver-installer/master/unsigned_driver_instal
ler.bat', 'usb_driver\unsigned_driver_installer.bat')
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException

'unsigned_driver_installer.bat' is not recognized as an internal or external com
mand,
operable program or batch file.

Setting the Environment Path
ERROR: The system was unable to find the specified registry key or value.
Creating 'Latest ADB Launcher' at Desktop
Deleting the temporary folder

Hurray!! Installation Complete, Now you can run ADB and Fastboot commands
using Command Prompt, Beginners can use 'Latest ADB Launcher' located
at Desktop, to flash TWRP, GSI etc

Note: In Case fastboot mode is not getting detected, just connect your phone
in fastboot mode and run the installer tool again.

If this tool helped you, Please donate or at least share this tool
with friends, so they don't have to waste time. Thanks in advance :-)

press any key to exit and open donation and share page

...and when I try to run some commands, I get this >

C:\Users\........\Desktop\Latest-adb-fastboot-installer-for-windows-master>fastboot flashing get_unlock_ability

FAILED (Write to device failed (Unknown error))

fastboot: error: Command failed

EDIT: Please ignore this post. I installed again with the phone in ADB mode (as the instructions say) and this time when trying the commands again in Fastboot mode, it works!! Very happy :D:D:D