Forum Discussion
Jesse13579
Jan 10, 2024Brass Contributor
Intune installed desktop shortcut needs to be removed
I created a desktop shortcut via intune windows app (win 32). Here is my script New-Item -Path "c:" -Name "mem" -ItemType "directory" -Force Copy-Item "S:\Shortcuts\UKG.ico" -Destination "c:\mem...
- Jan 11, 2024The detection is OK if you want the shortcut removed. You must assign a group to Uninstall the program, and it will run the uninstall script. The detection will check again to see if the file is still there. If not, The removal of the shortcut should be complete.
What does your uninstall command line look like? It should be powershell.exe -Executionpolicy Bypass -File .\uninstall.ps1
Jan 11, 2024
That should also work, -File is just for clarity. Ok... Then the assignment part, did you assign a group to uninstall the software?
Jesse13579
Jan 11, 2024Brass Contributor
I have my all endpoints group assigned to uninstall. I installed it to that group to begin with.
- Jan 11, 2024
Jesse13579 Yes 😄 Great to hear!
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If one of the posts was helpful in other ways, please consider giving it a Like. - Jesse13579Jan 11, 2024Brass ContributorI just added it and it's running now. I greatly appreciate all the help. This has driving me crazy for a few days now.
- Jan 11, 2024Could you add this to the top of the script: Start-Transcript c:\windows\temp\log.txt ? And this at the end: Stop-Transcript. Create a new .intunewin file again, deploy it, watch the status, and check c:\windows\temp\log.txt afterward...