Forum Discussion

Rob_Lam's avatar
Rob_Lam
Brass Contributor
Sep 16, 2024

How do I get HP Bloatware script to run during enrollment?

Hi all

 

I am wanting to put a script within Intune so during the deployment phase of autopilot it would remove the HP Bloatware however if I attach this script

https://gist.github.com/mark05e/a79221b4245962a477a49eb281d97388 into the deployment policy it would fail everytime.

 

I can only remove it by going to the start menu , run powershell as admin and then run the script manually from there.

 

What do I need to add so the script can run automatically?

 

It wouldn't matter if it can't be run during the enrollment stage but I do want to somehow automatic this .

 

Thanks

  • How did you add it? Like a Win32 package? And it fails because? Can you show a Transcript log (Start-Transcript c:\windows\temp\bloat.log at the top of the script and Stop-Transcript at the end of the script)?

Resources