# Execution of command remotely

**URL:** <https://www.ruby-forum.com/t/execution-of-command-remotely/179163>\
**Category:** Ruby\
**Created:** [November 18, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/execution-of-command-remotely/179163 "2009-11-18T19:16:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/76d3ee/32.png) [@nitu](https://www.ruby-forum.com/u/nitu)\
**Post date:** [November 18, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/execution-of-command-remotely/179163/1 "2009-11-18T19:16:29Z")

</div>

Hi folks,

I need hint how to connect to window server machine from other server  
and want to execute command but i am unable to connect. I suspect it is  
win32ole.connect (“winmgmt:\computername”) but it is not working.

Please suggest some good option.

Thanks in advance,  
-Pawan

---

<div class="post-metadata">

**Author:** ![nitu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/76d3ee/32.png) [@nitu](https://www.ruby-forum.com/u/nitu)\
**Post date:** [November 18, 2009, 7:26pm UTC](https://www.ruby-forum.com/t/execution-of-command-remotely/179163/2 "2009-11-18T19:26:17Z")

</div>

On Thu, 19 Nov 2009, Pawan Kumar wrote:

> Hi folks,
> 
> I need hint how to connect to window server machine from other server  
> and want to execute command but i am unable to connect. I suspect it is  
> win32ole.connect (“winmgmt:\computername”) but it is not working.
> 
> Please suggest some good option.

Install the cygwin tools and connect via ssh

– Matt  
It’s not what I know that counts.  
It’s what I can remember in time to use.
