Is there a way I can automate secure copy? I can't find any PowerShell API. I can use command line but I can't find anybody that has done it. We have to migrate lots of servers so we need to automate it.
Using command line is for those who have extensive experience in that field, unless you are one of them of course. What software are you currently using for software copying? If I may suggest something that really works for me, I'd say go for GS RichCopy 360. You can copy open and locked files from command prompt, you can work on windows VMs such as Hyper-V and VMware, and in your case automate secure copy. Besides that, it also has several other functions that are very valuable. I hope this helps.