Rafeal_Parker

Optiplex 9010 All-In-One Update Video Drivers

Nov 3rd, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#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.
  2.  
  3. 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.
  4. #>
  5.  
  6. #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.
  7.  
  8. $computer_model = Get-WmiObject win32_computersystem model | Select-Object -ExpandProperty model
  9. $logfile = "$Env:WinDir\Temp\Intel_HD_Update.txt"
  10. $transcript = "$Env:WinDir\Temp\Intel_HD_Update_transcript.txt"
  11.  
  12. Start-Transcript $transcript
  13. function update_driver($uninstall_driver, $install_folder){
  14.     Write-Output "Driver to uninstall: $uninstall_driver"
  15.     Write-Output "Computer Model: $computer_model"
  16.    
  17.     #uninstall old driver, Sysnative (for running via SCCM) or System32 (if not running through SCCM)
  18.     & "C:\Windows\Sysnative\PnPutil.exe" -f -d $uninstall_driver
  19.    
  20.     #install new intel driver
  21.     $installer = "$PSScriptRoot\$install_folder\setup.exe"
  22.     $arguments = '-s -overwrite -report "$Env:WinDir\Temp\IntelGFX.log"'
  23.     Start-Process $installer $arguments -Wait
  24.    
  25. }
  26.  
  27. if($computer_model -eq "Optiplex 9010 AIO"){
  28.     $uninstall_driver = Get-WmiObject Win32_PnPSignedDriver | Where-Object {$_.devicename -like 'Intel(R) HD Graphics 4000'} | Select-Object -ExpandProperty InfName
  29.     $install_folder = "Optiplex 9010 All In One"
  30.     update_driver $uninstall_driver $install_folder
  31. }
  32.  
  33. Write-Output "Clean-Up Install"
  34. Remove-Item "C:\Users\Public\Desktop\Intel(R) HD Graphics Control Panel.lnk"
  35.  
  36. Stop-Transcript
Advertisement
Add Comment
Please, Sign In to add comment