Intune
2 TopicsHow 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/a79221b4245962a477a49eb281d97388into 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 . Thanks361Views0likes2CommentsNeed a powershell script to delete a word document on intune devices
Hi All, I am trying to delete a word document on all intune devices. I have tried below but did not work. Get-ChildItem -Path "%appdata%\Microsoft\usertemplates" -Filter "WordTemplate-2.dotm" -Recurse | Remove-Item Get-ChildItem -Path "%appdata%\Microsoft\usertemplates" -Filter "WordTemplate-2.dotx" -Recurse | Remove-Item Could you please assist me providing a full powershell script that will work and remove the above files at above location on all the intune devices remotely. Thanks.Solved572Views0likes3Comments