Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

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.