Robocopy将文件复制到远程机器 [英] Robocopy to copy files to a remote machine
问题描述
我试图写一个robocopy命令将文件从我的本地计算机复制到任何一个部署服务器。
ROBOCOPY ../../MyService/bin/release/ \\remote-computer\\C:\services\myservice / MIR
我收到此错误
系统检测到可能尝试妥协安全。
请确保您可以与验证您的服务器联系。
这是期望的,因为我没有在命令中包括任何类型的安全凭证。 >
有没有办法通过包括权限来使这工作?我不想通过共享文件夹和东西这样做。我已经查看,但我在文档中看不到任何内容。
我应该使用 psexec
?或者我应该使用像powershell这样的东西?
你能看看这个答案,您的问题: Robocopy命令将文件复制到超过50个远程机器。此外,请查看此知识库文章: http://support.microsoft.com/kb/938457 。
I'm trying to write a robocopy command to copy files from my local computer to any one of my deployment servers
ROBOCOPY ../../MyService/bin/release/ \\remote-computer\\C:\services\myservice /MIR
and I get this error
The system detected a possible attempt to compromise security.
Please ensure that you can contact the server that authenticated you.
This is expected as I haven't included any sort of security credentials in the command.
Is there a way to get this to work by including permissions? I don't want to have to do this by sharing folders and stuff like that. I've looked but I can't see anything in the documentation.
Should I do this with something like psexec
? Or perhaps I should be using something like powershell instead?
Can you please take a look at this answer to see if this answers your question: Robocopy commands to copy a file to over 50 remote machines. Also, please take a look at this KB article: http://support.microsoft.com/kb/938457.
这篇关于Robocopy将文件复制到远程机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!