{"id":8314,"date":"2024-09-25T23:55:11","date_gmt":"2024-09-25T23:55:11","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=8314"},"modified":"2024-09-25T23:55:13","modified_gmt":"2024-09-25T23:55:13","slug":"how-to-use-intune-to-use-hp-image-assist-to-download-and-update-drivers","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-use-intune-to-use-hp-image-assist-to-download-and-update-drivers","title":{"rendered":"How to Use Intune to Use HP Image Assist to download and update Drivers"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">#Detect\n#Make sure you download and insstall hp-hpia-5.3.0.exe\n$HPIA_folder = \"C:\\SWSetup\\SP154530\"\n$HPIA_reco = \"$HPIA_folder\\Recommendations\"\n$HPIA_exe = \"$HPIA_folder\\HPImageAssistant.exe\"\n$HPIA_category = \"Drivers,Firmware\" \n\nTry {\n    if([System.IO.File]::Exists($HPIA_exe)){\n        if(Test-Path $HPIA_reco){Remove-Item $HPIA_reco -Recurse -Force}\n        Start-Process $HPIA_exe -ArgumentList \"\/Operation:Analyze \/Category:$HPIA_category \/Action:List \/Silent \/ReportFolder:\"\"$HPIA_reco\"\"\" -Wait\n        $HPIA_analyze = Get-Content \"$HPIA_reco\\*.json\" | ConvertFrom-Json\n\n        if($HPIA_analyze.HPIA.Recommendations.count -lt 1){\n            Write-Output \"Compliant, no drivers needed\"\n            Exit 0\n        }else{\n            Write-Warning \"Found drivers to download\/install: $($HPIA_analyze.HPIA.Recommendations)\"\n            Exit 1\n        }\n        \n        \n    }else{\n        Write-Error \"HP Image Assistant missing\"\n        Exit 1\n    }\n} \nCatch {\n    Write-Error $_.Exception\n    Exit 1\n}\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#remmediate\n$HPIA_folder = \"C:\\SWSetup\\SP154530\"\n$HPIA_report = \"$HPIA_folder\\Report\"\n$HPIA_exe = \"$HPIA_folder\\HPImageAssistant.exe\"\n$HPIA_category = \"Drivers,Firmware\"\n\ntry{\n    Start-Process $HPIA_exe -ArgumentList \"\/Operation:Analyze \/Action:Install \/Category:$HPIA_category \/Silent \/AutoCleanup \/reportFolder:\"\"$HPIA_report\"\"\" -Wait \n    $HPIA_analyze = Get-Content \"$HPIA_report\\*.json\" | ConvertFrom-Json\n    Write-Output \"Installation completed: $($HPIA_analyze.HPIA.Recommendations)\"\n}catch{\n    Write-Error $_.Exception\n}\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8314","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=8314"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8314\/revisions"}],"predecessor-version":[{"id":8315,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/8314\/revisions\/8315"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=8314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=8314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=8314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}