I am working with a very simple script. When I execute the script it keeps trying to change the remote directory to my local documents folder. This only happens on Windows server 2019. I do not have this issue on Windows 10 or Windows Server 2012. Any advice would be most helpful.
winscp Version: 5.17.10
Server: Windows server 2019 standard.
winscp.com /command "open sftp://xx:email@example.com/DEV/IN" "put D:\Files\out\My.csv" "exit" >MyLog.log
Searching for host... Connecting to host... Authenticating... Using username "xx". Authenticating with pre-entered password. Authenticated. Starting the session... Session started. Error changing directory to 'C:\Users\xx\Documents'. System Error. Code: 2.