I have a script that runs perfectly in a Job step of MS SQL besides one command. With this command:
Copy-Item C:\Test\My_file.txt \\NETWORK\FOLDER\DATA
This doesnt work in Powershell.exe.
I have tried also this:
$destination = "\\NETWORK\FOLDER\DATA"
Copy-Item C:\Test\My_file.txt $destination
When I run file where these lines are written, Powershell.exe works fine.
But But it doesnt work. Dont you know what can be a problem with copying to Network drive?
Thank you.