Create a headless Remote Desktop connection

2020-03-26 05:35发布

问题:

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.