Reply to thread

Put driverview.exe directly in c: then retry with the following code and command:[HIDE]$UsPr=$env:userprofile

$UsPr=$UsPr -replace ' ', '` '

$extdrivers="$UsPr\desktop\extdrivers.txt"

$extdrivers2="$UsPr\desktop\extdrivers2.txt"

$tempfile="$UsPr\desktop\temp.txt"

$output="$UsPr\desktop\Non-ms-drivers.txt"

c:\windows\system32\cmd.exe /c c:\driverview /sort 1 /stext $UsPr\desktop\extdrivers.txt

type $extdrivers | find /i "driver name" | out-file $extdrivers2

$drivers = Get-Content $extdrivers2

FOR ($i=1; $i -lt $drivers.Length; $i++) {

NV -Name "linea$i"

SV -name "linea$i" -value ($drivers.GetValue($i))

$tmp = GV -name linea$i -valueonly

$tmp = ( $tmp.TrimStart("Driver Name       : ") + " , " )

$tmp | out-file $tempfile -append

RV -Name "linea$i"

}

$tmp = get-content $tempfile | sort

$tmp = $tmp -join ""

$tmp = $tmp.TrimEnd(" , ")

$tmp = $tmp.Replace(" , ", ",")

$tmp | out-file $output

verifier /flags 0x22892b /bootmode resetonbootfail /driver $tmp

del $output, $extdrivers, $tempfile, $extdrivers2

rv tmp, tempfile, output, i, extdrivers2, drivers[/HIDE]



If it still won't work, use the standard method (i.e., do it manually from verifier GUI).


Back
Top