I am trying to rename a file and then copy a file to that location, the error I am getting is that
Rename-Item : Cannot rename because item at .... does not exist.
The issue I believe is that the file does not have an extension, so I have something like:
rename-item "\\$serverName\c$\temp\filename" -NewName filename.$currentdate