I have been trying to run a script that should copy a shortcut from a server share to a user's desktop. I am just trying to get the script to work, but that is not happening.
copy /y "\\server\share$\shortcut" "%USERPROFILE%\Desktop\"
Every time I try and run this from a target workstation, while logged in as a local admin, I get the following message in the command prompt.
The system cannot find the file specified.
Press any key to continue . . .
I can browse to the share and shortcut via UNC path. Why can't the script find the file if it is plainly there? I haven't even got to trying top deploy the script yet.