Remove-Item powershell command fails

I have a very simple powerhell script 

Remove-Item "C:\Users\Public\Desktop\Student TV.lnk"  that returns an error code of 1 when I try to use it through PDQ deploy.  When I test it locally on a machine it works fine.  Any guidance of why this is?  I am using all the default settings with the package and this is the only step in the package.



Date Votes
  • Is there anything in the Output log for that step?

  • This is the content of the output log 

    The process cannot access the file because it is being used by another process.

    I can't find a process that has this open.  It is just a shortcut file.


Please sign in to leave a comment.

Didn't find what you were looking for?

New post