Yes, this is possible, but involves a little trick.
Get your driver
In order to make this solution work you must have not compressed driver:
- Download .zip or .cab file, if your hardware vendor provides such
- Download .exe file, if your vendor provides drivers in this form only.
- Unzip downloaded file
For .zip files you can use any software that supports these files or even better Windows itself (which treats .zip files as folders). For .cab or .exe file, use Total Commander (press Shift+F9).
Source: Add drivers manually to USB drive to install Windows using a USB 3.0 Port
Copy driver
Copy your unpacked driver files, with all folders and subfolders and with (the most important) .inf file to some removable media like USB stick.
Put your stick to a computer where you want to install drivers from the lock screen.
Hack your Windows
Press and hold Shift key and click on Power → Restart to boot into Recovery Mode.
Click on Troubleshoot → Command Prompt
Execute the following:
cd c:\Windows\System32
ren utilman.exe utilman.old
ren cmd.exe utilman.exe
Restart computer
Alternatively you can rename magnify.exe
to something else and then rename cmd.exe
to magnify.exe
.
Adjust path, if needed, but usually your Windows is installed to c:\ drive.
Source: Special key sequence to run cmd at Windows lock screen
Access command-line from lock screen
- Press Win+U or
- Click Ease of Access Center icon in the bottom right corner
Alternatively you can press Win++ to run Magnify command-line.
Source: Special key sequence to run cmd at Windows lock screen
Install driver
Find your USB's drive letter. You can use wmic
. Or simply iterate drives.
Navigate to that drive (i.e. cd d:\
etc.)
Install all drivers found in this drive:
pnputil /add-driver d:\*.inf /subdirs /install /reboot
Restart computer
Read here if you need more specific command's parameters for pnputil
command.
Source: How to install or update Drivers using Command Prompt in Windows 11/10
Un-hack your Windows
Access command line either directly or as described in 3rd part and execute the following:
cd c:\Windows\System32
ren utilman.exe cmd.exe
ren utilman.old utilman.exe
You should be done.