I need to run xcopy command. But when I type it with all parameters:
xcopy \\<server>.<domain>.com\c$\Users\<user>\Documents\New_ADuser_mustang.ps1 C:\IAM\New_ADuser_mustang.ps1 /C /Y /R
I'm prompted with a question
Does C:\IAM\New_ADuser_mustang.ps1 specify a file name or directory name on the target (F = file, D = directory)?
I need to specify that before I run the command, not after that. The command is run as a part of automated daily task, so there is no one who could answer this question.