• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.
HP Recommended
Microsoft Windows 11

Pushing and running HP Image assistant from Intune. Is there a way to once it downloads and install the drivers, bios, etc that it could prompt the user if they want to restart now or schedule it for later? Currently we are seeing it does its thing silently then immediately reboots no matter what the user is in the middle of and we want to fix that. Thanks

4 REPLIES 4
HP Recommended

@dj562006, Welcome to HP Support Community. 

 

Thank you for posting your query, I will be glad to help you. 

HP Image Assistant itself doesn't have a built-in "ask user to reboot" feature.
BUT, you can work around this using Intune scripting and PowerShell (and slightly modify your deployment process).

 

Here's the Best Way to Fix It:

Run HPIA Without Automatically Rebooting

When you launch HPIA, make sure you use the /noreboot parameter.
Example command:


HPImageAssistant.exe /Operation:Analyze /Category:All /Action:Install /NoReboot

This will prevent it from rebooting automatically, even if a BIOS update or driver normally asks for it.

 

Prompt the User to Reboot Using Your Own Script

You can pop up a message to the user asking something like:

  • "Updates installed. Would you like to reboot now or later?"
  • If they click "Now", reboot immediately.
  • If they click "Later", just leave it alone.

This way you control the reboot, not HPIA.Here’s a simple PowerShell script you can push after HPIA finishes:


Add-Type -AssemblyName PresentationFramework
$result = [System.Windows.MessageBox]::Show('Updates were installed. Do you want to reboot now?', 'Reboot Required', 'YesNo', 'Question')

if ($result -eq 'Yes') {
   Restart-Computer -Force
} else {
   # Do nothing, user will reboot later
}

 

Bundle This Together in Your Intune Deployment

You can set it up like:

  • Step 1: Run HPIA with /noreboot
  • Step 2: When HPIA exits, run the PowerShell script to ask the user
  • Step 3: Track reboot compliance separately if needed.

You can make this into a Win32 app package or a Proactive Remediation script in Intune.

 

I hope this helps. 

 

Take care and have a good day. 

 

Please click “Accepted Solution” if you feel my post solved your issue, it will help others find the solution. Select "Yes" on the bottom left to say “Thanks” for helping! 

 

Max3Aj

HP Support 

HP Recommended

Thanks, could you provide what would be used for the detection and remediation if I wanted to use this as a proactive remediation in Intune? 

HP Recommended

Thanks, could you provide what we would use for Detection and remediation for using this as a proactive remediation in Intune? 

HP Recommended

@dj562006, Thank you for your response,  

 

I'm sending a private message to assist you with the next action. 

  

Please check your Private message icon on the upper right corner of your HP Community profile Next, to your profile Name, you should see a little blue envelope, please click on it or simply click on this link

  

I hope this helps! Keep me posted. 

  

Max3Aj

HP Support 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.