Click here to Skip to main content
15,895,011 members
Articles / Containers / Virtual Machine

Using WinSCP and PowerShell Script to Copy or Move Files from a One Virtual Machine/Remote Server Path to a Path in a Local Server

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
7 Jun 2023CPOL1 min read 7.2K   20   3  
When you want to get files from a remote machine and needed by a system or other process, it is possible using WinSCP and PowerShell script.
With the use of this tip, you should be able to pick a particular file using its name. This same file can be pulled out from the remote server to the local path. You would also learn smart way of doing this using a for-loop. It will also show you how to use WinSCP as protocol in the script.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Business Analyst Personal
Nigeria Nigeria
I have experience in application development in the use of .Net, PHP, MSSQL, JAVA....

Comments and Discussions