Forum Discussion
Intune installed desktop shortcut needs to be removed
- 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
Jesse13579 Running it as a Win32 app is perfect, but you should run it as a System and not as a User because the User doesn't have permissions in the c:\users\public folder.
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 10, 2024Brass ContributorI’m new with intune. How do I go about running it as a system?
- Jan 10, 2024
Jesse13579 When you add an Intunewin app to Intune, you can select the Installation behavior to be System or User.
- Jesse13579Jan 10, 2024Brass Contributor
Harm_Veenstra I just checked and I do have the instillation behavior set to System. I went through and verified a few of the machines and the desktop shortcut is still there even though the app says it ran correctly.