Copy files to a remote server via RDP using a script

早过忘川 提交于 2019-12-04 23:34:21

问题


We have a couple production servers that are configured to only allow access via RDP. There are no acessible shares. The dev team have no say in changing this setup but we want to automate code deployments to these machines. Presently we have to set Remote Desktop to share a local drive with the server, then RDP to the server and manually copy the deployment.

Any one know of a way to tunnel over RDP and drop files to a given directory on the remote host from the command line? The instructions will need to be included in an MSBuild configuration.


回答1:


If you can get WS-MAN set up, PowerShell remoting and/or pmodem might be your ticket? http://www.nivot.org/2009/11/02/PowerShell20IntroducingThePModemFileTransferProtocol.aspx (Alternate link: http://www.nivot.org/blog/2009/11/default )



来源:https://stackoverflow.com/questions/1867180/copy-files-to-a-remote-server-via-rdp-using-a-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!