问题
I'm looking to automate deploying content via RDP. The current setup involves manually RDPing to the machine, copying the file to it, and moving it into place. Once on the remote machine, I can easily script massaging the content into place, but how do I script establishing the RDP session and kicking off the remote script?
回答1:
It appears that Remote Desktop can only be used interatively. Powershell Remoting seems to accomplish the goal though.
来源:https://stackoverflow.com/questions/15540856/create-a-headless-remote-desktop-connection