Hi jrv,
Thanks for taking the time to help with this one, here are the results:
Running the follwoing command returns a new line with no text other then the prompt dialogue
powershell.exe -Command "gci C:\Users\$env:USERNAME\Desktop\Acrobat Reader*.lnk -exclude 'Acrobat Reader DC.*' | Remove-Item -WhatIf"
and to error check in case there is a flaw in the command itself:
C:\Users\petwil>powershell.exe -Command "gci 'C:\Users\petwil\Desktop\Acrobat Reader*.lnk' -exclude 'Acrobat Reader DC.*' | Remove-Item -WhatIf"
What if: Performing operation "Remove File" on Target "C:\Users\petwil\Desktop\Acrobat Reader 9 - Copy.lnk".
What if: Performing operation "Remove File" on Target "C:\Users\petwil\Desktop\Acrobat Reader 9.lnk".
What if: Performing operation "Remove File" on Target "C:\Users\petwil\Desktop\Acrobat Reader X.lnk".
And the directory has the following contents:
C:\Users\petwil>dir Desktop
Volume in drive C is Windows
Volume Serial Number is BE6D-703B
Directory of C:\Users\petwil\Desktop
14/05/2015 03:48 PM <DIR> .
14/05/2015 03:48 PM <DIR> ..
23/04/2015 03:47 PM 2,054 Acrobat Reader 9 - Copy.lnk
23/04/2015 03:47 PM 2,054 Acrobat Reader 9.lnk
23/04/2015 03:47 PM 2,054 Acrobat Reader DC.lnk
23/04/2015 03:47 PM 2,054 Acrobat Reader X.lnk
17/04/2015 12:01 PM <DIR> Sametime Fix
17/04/2015 12:01 PM 459,782 Sametime Fix.mp4
08/05/2015 08:16 AM 703 SysCAD92.lnk
6 File(s) 468,701 bytes
3 Dir(s) 21,412,667,392 bytes free
Any Ideas?