Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

downloading a file from SFTP and calling ps script with batch file

$
0
0

I have a simple ps script to upload a file to a SFTP site. The ps script works fine when I run it from the ps editor or drag the file to an open ps window.

When I call the ps script from a batch file there are no errors but the file does not get uploaded.

I am running the batch file with my domain admin account and I even tried the domain admin account but I get the same results, no errors but no file transfer.

TIA!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>