Created
June 15, 2026 21:34
-
-
Save tartavull/180e091e15db48cf134485b7c5a8c8b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ErrorActionPreference = 'Stop' | |
| $ProgressPreference = 'SilentlyContinue' | |
| $dir = Join-Path $env:TEMP 'system76-lemp13-drivers' | |
| New-Item -ItemType Directory -Force -Path $dir | Out-Null | |
| $drivers = @( | |
| @{ Name = 'chipset'; Url = 'https://github.com/system76/windows-drivers/raw/master/drivers/intel/mtl-uh/2024-WW24/Chipset-10.1.19627.8423-Public-MUP.zip' }, | |
| @{ Name = 'serialio'; Url = 'https://github.com/system76/windows-drivers/raw/master/drivers/intel/mtl-uh/2024-WW24/30.100.2405.44-mtl-p-v2.zip' }, | |
| @{ Name = 'wifi'; Url = 'https://github.com/system76/windows-drivers/raw/master/drivers/intel/mtl-uh/2024-WW24/wifi-SBHWFW00656_23.30.0.6_G.zip' } | |
| ) | |
| foreach ($driver in $drivers) { | |
| $zip = Join-Path $dir ($driver.Name + '.zip') | |
| $out = Join-Path $dir $driver.Name | |
| Write-Host ('Downloading ' + $driver.Name + '...') | |
| Invoke-WebRequest -UseBasicParsing -Uri $driver.Url -OutFile $zip | |
| New-Item -ItemType Directory -Force -Path $out | Out-Null | |
| Expand-Archive -Force -Path $zip -DestinationPath $out | |
| } | |
| $log = Join-Path $dir 'pnputil.log' | |
| Write-Host 'Installing drivers...' | |
| & pnputil.exe /add-driver (Join-Path $dir '*.inf') /subdirs /install | Tee-Object -FilePath $log | |
| & pnputil.exe /scan-devices | Tee-Object -Append -FilePath $log | |
| Write-Host 'Done. Rebooting in 15 seconds. Log:' $log | |
| shutdown.exe /r /t 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment