Skip to main content

Comments

1 comment

  • Markus Ullin

    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
    $pnpUtilLog

    0

Please sign in to leave a comment.

Powered by Zendesk