install graphics driver via intune

%3CLINGO-SUB%20id%3D%22lingo-sub-2885477%22%20slang%3D%22en-US%22%3Einstall%20graphics%20driver%20via%20intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2885477%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20have%20to%20use%20a%20specific%20driver%20for%20adobe%20and%20would%20like%20to%20install%20this%20remotely%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20files%20of%20the%20driver%20are%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-10-26%20at%2010.47.52%20AM.png%22%20style%3D%22width%3A%20261px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F320000i919342ED397AF949%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-10-26%20at%2010.47.52%20AM.png%22%20alt%3D%22Screenshot%202021-10-26%20at%2010.47.52%20AM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20to%20follow%20this%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Funiversecitiz3n.tech%2Fintune%2FIntune-Win32-CustomScript%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Funiversecitiz3n.tech%2Fintune%2FIntune-Win32-CustomScript%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20cant%20seem%20to%20get%20it%20to%20work%2C%20any%20ideas%20on%20a%20alternative%20way%20%3F%20Or%20how%20I%20can%20get%20it%20to%20work%20as%20i%20am%20unsure%20of%20which%20parts%20of%20the%20script%20I%20need%20to%20change%20to%20work%20for%20me%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2885477%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Friday%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EConditional%20Access%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Application%20Management%20(MAM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESoftware%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2885798%22%20slang%3D%22en-US%22%3ERE%3A%20install%20graphics%20driver%20via%20intune%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2885798%22%20slang%3D%22en-US%22%3EIn%20the%20script%20you%20are%20using%20it%20will%20launch%20the%20igxpin.exe%20from%20the%20.%5Cintel%20folder%2C%20looking%20at%20the%20screenshot%20that%20folder%20is%20igfx_win10_100.8496%20%3F%3C%2FLINGO-BODY%3E
Super Contributor

Hi all,

I have to use a specific driver for adobe and would like to install this remotely 

 

The files of the driver are: 

 

Screenshot 2021-10-26 at 10.47.52 AM.png

 

I have tried to follow this: https://universecitiz3n.tech/intune/Intune-Win32-CustomScript/

 

But I cant seem to get it to work, any ideas on a alternative way ? Or how I can get it to work as i am unsure of which parts of the script I need to change to work for me?  

 

Please help!

7 Replies
In the script you are using it will launch the igxpin.exe from the .\intel folder, looking at the screenshot that folder is igfx_win10_100.8496 ?

Hi @Rudy_Ooms 

So would i only need to change the .\intel part? like I have done so below? Or is there more things I would need to change before I can get it to work with the driver I need?

 

#Check for path where logs will be stored
if (!(Test-Path C:\Temp)) {
    New-Item -Path C:\ -ItemType Directory -Name Temp
    New-Item -Path C:\Temp -ItemType Directory -Name SU
}
elseif (!(Test-Path C:\Temp\SU)) {
    New-Item -Path C:\Temp -ItemType Directory -Name SU
}

function Get-Info
{
    "[$Env:ComputerName] [$Tag] [$((Get-Date -Format 'yyyy-MM-dd HH:mm:ss').ToString())] [$($env:UserName)] [$($MyInvocation.ScriptLineNumber)]"
}

function Exit-WithCode
{
    param
    (
        $exitcode
    )

    $host.SetShouldExit($exitcode)
    exit
}

$SoftwareName = 'IntelGraphics'
#Check currently installed version of driver
$InstallationVersion = Get-CimInstance -ClassName win32_pnpsigneddriver | Select-Object devicename, manufacturer, driverversion | Where-Object {$PSItem.DeviceName -like 'Intel(R)*HD Graphics*'}
#Write driver version to file
"$(Get-Info) Installed version $($InstallationVersion.driverversion)" | Out-File -Append -FilePath c:\Temp\SU\IntelGraph.log
#Install drivers silently
$Process = start-process "igfx_win10_100.8496.\igxpin.exe" -ArgumentList @('-report c:\temp\su\IntelGraph.log', '-s') -NoNewWindow -Wait -PassThru
$Process.WaitForExit()
#Determine exit of installation based on exitcode of Intel  
If($Process.Exitcode -eq '0'){
    #Hard reboot
    Exit-WithCode -exitcode 1641
}else{
    #Retry
    Exit-WithCode -exitcode 1618
}

 Thanks in advance

Hi,

Looking at the script (didnt test it myself)

".\igfx_win10_100.8496\igxpin.exe" instead of ".\Intel\igxpin.exe"
But please make sure you are packaging the folder igfx_win10_100.8496 and not only the contents of it..
So create a folder on you harddrive c:\packages
create a new sub folder igfx_win10_100.8496 in it with the contents igxpin.exe
-Create the powershell script you mentioned and place it in the c:\packages folder
-Create the intunewinapp package and select the poewrshell script as install file ... it will also add the igfx folder to it...

Thanks Rudy!

If I wanted to find out the detection rule for this thet use:

$Driver = Get-CimInstance -ClassName win32_pnpsigneddriver | Select-Object devicename, manufacturer, driverversion | Where-Object {$PSItem.DeviceName -like 'Intel(R)*HD Graphics*'}

if ($Driver.driverversion -eq '26.20.100.6888') {
Write-Output 'Newest version installed'
#Exit code will be 0 and STDOUT not empty
}
else {
exit 1
}

Do I need to change the version how do I find this out to match mine?

Hi @Rudy_Ooms 

 

I have also tried to run the script manually before putting on intune and I get this? Any ideas? 

 

Capture.PNG

 

Thanks in advance

@AB21805 

 

I just downloaded the zip file.. extracted the content to the intel folder..  and run  the script ?

 

Rudy_Ooms_0-1635329920227.png

 

Looks like its working as it should? The only difference is that i now run .\install.ps1 as install command... when uploading the app you need to change that part of course to powershell.exe -executionpolicy Bypass -file .\install.ps1 

Hi am trying to do it via this zip: https://helpx.adobe.com/x-productkb/multi/drivers-video-win-intel.html

No luck still! I have no idea where im going wrong :(