Hello,
I've been having this weird issue, we normally copy files from a PowerShell host to a newly created VM and for that task, I have a ps1 script on the PowerShell, and it will call pscp.exe. Right now that's the way its being done, but yes there is room for improvements.
But for now I have to figure out a way out of this. The thing is that the ps1 script works fine, because the file is correctly sent to the VM. But there's that interactive prompt that asks the question y/n. But I'm able to answer the question by doing echo y | script.ps1...
For some reason in VRO it comes out as an error. But its not an error at all! Suggestion anyone ?
2016-12-15 09:23:51.603] [I] PS Argument: -CopieKtab '{"domainName":"domaine.local","serverName":"LPAPACHE100"}' [2016-12-15 09:24:55.384] [E] (com.vmware.library.powershell/invokeScript) Error in (Dynamic Script Module name : invokeScript#14) PowerShellInvocationError: Errors found while executing script D:\ApplProd\Powershell\RO\outils\pscp.exe : The server's host key is not cached in the registry. You Au caract�re Ligne:1 : 10 + echo y | D:\ApplProd\Powershell\RO\outils\pscp.exe -P 224 -i D:\ApplP ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (The server's ho...e registry. You :String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048 6d:92:8b:0b:a1:11:29:18:58:b6:b6:af:d7:32:ea:e0 If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting. If you want to carry on connecting just once, without adding the key to the cache, enter "n". If you do not trust this host, press Return to abandon the connection. Store key in cache? (y/n) [2016-12-15 09:24:55.559] [I] Trying to lock machines