如何使用批处理文件连接到其他服务器。 [英] How Can I Connect To Other Server By Using Batch File.

查看:141
本文介绍了如何使用批处理文件连接到其他服务器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想通过使用ip地址和passowrd从批处理文件连接到另一台服务器。

i遇到了网络使用类似的东西。有没有其他方法可以实现它?

请提供一些输入。

Hi all,
I want to connect to another server from batch file by using the ip address and passowrd.
i have come across "net use" kinda stuff.Is there any other way to achieve it?
please provide some inputs.

推荐答案

为了远程运行命令,你需要一些协议来传递信息和命令。看一下这些产品 [ ^ ]用于安全的远程shell。
In order to run commands remotely you need some protocol to transfer information and commands. Take a look at some of these offerings[^] for secure remote shell.






您可以请求远程主机远程执行操作(在后台或不在后台),就像您在主机上使用PowerShell一样,或者如果您确实需要较旧的WMIC批处理文件。 />


例如:



c:\ wmic / node:hostname进程调用createcall c :\any_file



其中hostname =您要在网络内连接的主机(名称或IP)

any_file =您要使用的文件



您可以使用buildIn WMIC API或启动/停止流程





在此处阅读更多信息 http://technet.microsoft.com/en-us/ library / bb742610.aspx [ ^ ]



问候

Hermitagup
Hi,

You can "ask" remote host to perform action remotely (in background or not), just like you are on host by using PowerShell or if you really need batch file by "older" WMIC.

example:

c:\wmic /node:hostname process call create "call c:\any_file"

where hostname=host you want to connect inside your network (Name or IP)
any_file=file you want to use

You can use buildIn WMIC API or start / stop processes


Read more here http://technet.microsoft.com/en-us/library/bb742610.aspx[^]

Regards
Hermitagup


这篇关于如何使用批处理文件连接到其他服务器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆