Quantcast
Channel: Configuration Manager 2007 Software Distribution forum
Viewing all articles
Browse latest Browse all 629

Remove application shortcuts from Public Desktop

$
0
0

Hello:

I have created a software package which works just fine when I advertise it to a group of computers. The issue that I am running into is that it creates shortcuts for the application the desktop for all users located at C:\Users\Public\Desktop. What I figured I would do is create another program under the same software package that would delete these shortcuts and I would add the program to the task sequence that advertises this software package so that everything would be done at once. 

The new program that I created has the following parameters set:

Command Line: cmd /c "del /F /Q "AppShortcut.lnk""
Start in: C:\Users\Public\Desktop

But this does not work. On the SCCM logs it says that it completes successfully but the shortcut is still there. I tried to also change the command to invoke powershell instead and use the 'Remove-item' cmdlet but still no luck. The weird thing is that if I run the same command in an elevated console (either the dos 'del' command of the powershell one) on the machine directly (obviously as an admin) it does not work, it says 'access denied'. But I can manually delete the file although I get the UAC prompt when I do it. 

I've searched these forums and found this: http://social.technet.microsoft.com/Forums/en-US/configmgrswdist/thread/ae857ff2-c3dd-4902-86c5-8350451a9089 which I also tried but did not work. I should mention that I have tried this on other locations in the target machine (ie. C:\apps\shortcuts\myapp.lnk) and the commands work fine from the command line and from SCCM.

Is there something specific to the c:\users\public\desktop folder that is preventing this from working? any thoughts?

Thanks.


Viewing all articles
Browse latest Browse all 629

Trending Articles