Category / Drivers / Hardware / PowerShell / Script
-
Extract drivers from Lenovo driver packages
1234Get-ChildItem -Path E:\T450S -Filter *.exe -Exclude getw10ver.exe -Depth 1 | ForEach {write-host $_.FullnameStart-Process $_.Fullname -ArgumentList '/VERYSILENT /Extract="YES" /DIR="c:\tempdriver"' -Wait}1234Get-ChildItem -Path 'E:\ThinkPad T480s' -Filter *.exe -Exclude getw10ver.exe,getw10ver4 -Recurse | ForEach {write-host $_.FullnameStart-Process $_.Fullname -ArgumentList '/VERYSILENT /Extract="YES" /DIR="E:\ThinkPad T480s"' -Wait} -
Inject drivers in task sequence step
Run command line: DISM.exe /Image:C:\ /Add-Driver /Driver:.\ /Recurse Package: SCCM package with no program TS step conditions: WMI Namespace: root\cimv2 WQL query: select Model from Win32_ComputerSystem where Model like "%THINKPAD T450s%" and / or WMI Namespace: root\cimv2 WQL query: SELECT * FROM Win32_ComputerSystemProduct WHERE Version LIKE “%ThinkPad T420%”
Loading posts...