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
For whatever reason after making that change to the uninstall it is now working. I removed the desktop shortcut from the test pcs and I've pushed it out to the other machines. I've had a full success rate so far. I greatly appreciate all the help and patience.
- Jan 11, 2024No problem!