net use \\192.168.210.158\IPC$ 3.admin /user:administrator
sc \\192.168.210.158 stop xxxxteCustomFetch
xcopy C:\xxxxxwritecf\*.dll \\192.168.210.158\WriterRobotTest\xxxxteCustomFetch /e /s /f /i /y
xcopy C:\xxxxxxwritecf\*.exe \\192.168.210.158\WriterRobotTest\xxxxteCustomFetch /e /s /f /i /y
sc \\192.168.210.158 start xxxxteCustomFetch
net use \\192.168.210.158\ipc$ /delete
博客展示了一系列远程服务操作命令。通过net use建立连接,使用sc命令停止和启动远程服务,xcopy命令将本地的dll和exe文件复制到远程指定目录,最后用net use删除连接,实现远程服务文件替换与服务的启停。
3万+

被折叠的 条评论
为什么被折叠?



