Driver updates
AnsweredHow to manage driver updates on computers without computer reinstall?
Maybe already existing but howto?
-
Meanwhile you can update the drivers with an application package and PowerShell
####################################### Get current path
try
{
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path -ErrorAction Stop
}
catch
{
Write-Host "Couldn't get the current script directory path"
break
}# Get all INF-files in current folder where the script is located
$infToInstall = Get-ChildItem $scriptDir -Include *.inf -Recurse | Select-Object -ExpandProperty Path# Foreach INF-file that was found in the current directory
foreach ($infPath in $infToInstall)
{
Write-Host "$(Get-Date -Format HH:mm:ss) Installing $infPath"
$pnpUtilLog += @(&pnputil.exe /a "$infPath" /install) -join "`n"
}# Print the pnpUtilLog
$pnpUtilLog0
Please sign in to leave a comment.
Comments
1 comment