Forum Discussion
TormyVanCool
Sep 18, 2022Copper Contributor
Small HDMI-to-VGA Adapter make very often crash Windows 11 Pro
It started almost 2 month ago. I have 3 monitors on my adapter. 1 DisplayPort: 3840 (Main) 1 HDMI: 1920 (Auxiliary) 1 VGA 1920 connected to the GPU via the HDMI-VGA adapter (Auxiliary) I a...
Mousefluff
Sep 20, 2022Iron Contributor
TormyVanCoolIf that doesn't work, you may have to think about removing display drivers manually to get it to boot ( if that is the actual problem you're dealing with )
list drivers: pnputil -e > <PATH><FILENAME>.txt ( EXAMPLE: pnputil -e > "%UserProfile%\Desktop\driverlist.txt" )
list drivers: pnputil /enum-drivers > <PATH><FILENAME>.txt ( EXAMPLE: pnputil /enum-drivers > "%UserProfile%\Desktop\driverlist.txt" )
list drivers: Export-WindowsDriver -Online -Destination <PATH>
ONLINE -> remove driver: pnputil -f -d oem<NUMBER>.inf
OFFLINE -> Remove-WindowsDriver -Path <PATH> -Driver <NAME>.inf
MKDIR "C:\Scrtch"
REM List All 3rd-Party Drivers on an Offline Windows 10/11 Image
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Get-WindowsDriver -Path C:\ -ScratchDirectory C:\Scrtch | Sort ProviderName | Format-Table Driver,ProviderName,ClassName,BootCritical,OriginalFileName -AutoSize | Out-String -Stream}"
REM Create a UTF-8 Text File That Lists All 3rd-Party Drivers on an Offline Windows 10/11 Image
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Set-Content -Path 'C:\Driver_List.txt' -value (Get-WindowsDriver -Path C:\ -ScratchDirectory C:\Scrtch | Sort ProviderName | Format-Table Driver,ProviderName,ClassName,BootCritical,OriginalFileName -AutoSize | Out-String -Stream)}"
REM Remove a Driver from an Offline Windows 10/11 Image
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Remove-WindowsDriver -Driver oem<NUMBER>.inf -Path C:\ -ScratchDirectory C:\Scrtch}"
REM List All 3rd-Party Drivers on an Online Windows 10/11 Image
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Get-WindowsDriver -Online -ScratchDirectory C:\Scrtch | Sort ProviderName | Format-Table Driver,ProviderName,ClassName,BootCritical,OriginalFileName -AutoSize | Out-String -Stream}"
REM Create a UTF-8 Text File That Lists All 3rd-Party Drivers on an Online Windows 10/11 Image
powershell -noprofile -ExecutionPolicy Bypass -Command "& {Set-Content -Path 'C:\Driver_List.txt' -value (Get-WindowsDriver -Online -ScratchDirectory C:\Scrtch | Sort ProviderName | Format-Table Driver,ProviderName,ClassName,BootCritical,OriginalFileName -AutoSize | Out-String -Stream)}"
RMDIR /S /Q "C:\Scrtch"
PnPUtil /add-driver * <filename.inf | .inf> [/subdirs] [/install] [/reboot]
Windows Vista: pnputil -a -i filename.inf
DIR /B /S <PATH>*.inf > filename.txt
https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/pnputil-command-syntax
Microsoft PnP Utility
Usage:
------
pnputil.exe [-f | -i] [ -? | -a | -d | -e ] <INF name>
Examples:
pnputil.exe -a a:\usbcam\USBCAM.INF -> Add package specified by USBCAM.INF
pnputil.exe -a c:\drivers\*.inf -> Add all packages in c:\drivers\
pnputil.exe -i -a a:\usbcam\USBCAM.INF -> Add and install driver package
pnputil.exe -e -> Enumerate all 3rd party packages
pnputil.exe -d oem0.inf -> Delete package oem0.inf
pnputil.exe -f -d oem0.inf -> Force delete package oem0.inf
pnputil.exe -? -> This usage screen
Rundll32.exe %SystemRoot%\system32\pnpclean.dll,RunDLL_PnpClean /DEVICES /DRIVERS /FILES /MAXCLEAN
CleanMgr Commands (Remove Old Device Drivers) -> "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Device Driver Packages"
Automating Disk Cleanup tool in Windows -> https://docs.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/automating-disk-cleanup-tool
"Creating a Disk Cleanup Handler" -> https://docs.microsoft.com/en-us/windows/win32/lwef/disk-cleanup