Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#I initially wrote this script to update the drivers on Dell Optiplex 9010, 9020, & 9030 All-On-Ones, due to Adobe Illustrator CC 2015 GPU acceleration. I ended up only needing to run this on 9010s, so the model detection isn't necessary, but I left it in.
- I had to remove the old driver due to Dell not having a newer driver on their site for the 9010. I fetched it from Intel since the GPU is the HD Graphics 4000.
- #>
- #This script is to update the Intel HD Graphics from the Dell One's to the most recent intel Release on the 9010 All-In-Ones.
- $computer_model = Get-WmiObject win32_computersystem model | Select-Object -ExpandProperty model
- $logfile = "$Env:WinDir\Temp\Intel_HD_Update.txt"
- $transcript = "$Env:WinDir\Temp\Intel_HD_Update_transcript.txt"
- Start-Transcript $transcript
- function update_driver($uninstall_driver, $install_folder){
- Write-Output "Driver to uninstall: $uninstall_driver"
- Write-Output "Computer Model: $computer_model"
- #uninstall old driver, Sysnative (for running via SCCM) or System32 (if not running through SCCM)
- & "C:\Windows\Sysnative\PnPutil.exe" -f -d $uninstall_driver
- #install new intel driver
- $installer = "$PSScriptRoot\$install_folder\setup.exe"
- $arguments = '-s -overwrite -report "$Env:WinDir\Temp\IntelGFX.log"'
- Start-Process $installer $arguments -Wait
- }
- if($computer_model -eq "Optiplex 9010 AIO"){
- $uninstall_driver = Get-WmiObject Win32_PnPSignedDriver | Where-Object {$_.devicename -like 'Intel(R) HD Graphics 4000'} | Select-Object -ExpandProperty InfName
- $install_folder = "Optiplex 9010 All In One"
- update_driver $uninstall_driver $install_folder
- }
- Write-Output "Clean-Up Install"
- Remove-Item "C:\Users\Public\Desktop\Intel(R) HD Graphics Control Panel.lnk"
- Stop-Transcript
Advertisement
Add Comment
Please, Sign In to add comment