# Wmi problem

**URL:** <https://rubytalk.org/t/wmi-problem/46719>\
**Category:** ruby-talk\
**Created:** [26 May 2008 14:19 UTC](https://rubytalk.org/t/wmi-problem/46719 "2008-05-26T14:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nimrod\_cohen](https://avatars.discourse-cdn.com/v4/letter/n/cdc98d/32.png) [@nimrod\_cohen](https://rubytalk.org/u/nimrod_cohen)\
**Post date:** [26 May 2008 14:19 UTC](https://rubytalk.org/t/wmi-problem/46719/1 "2008-05-26T14:19:09Z")

</div>

hi  
i need to execute a remote command on windows machine using ruby  
my env is windows xp  
what ruby method/packet should i use ?  
example will really help

thanks  
nimrod

> **···**
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> News, entertainment and everything you care about at [Live.com](http://Live.com). Get it now!  
> [http://www.live.com/getstarted.aspx](http://www.live.com/getstarted.aspx)

---

<div class="post-metadata">

**Author:** ![Axel\_Etzold](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Axel\_Etzold](https://rubytalk.org/u/Axel_Etzold)\
**Post date:** [26 May 2008 22:09 UTC](https://rubytalk.org/t/wmi-problem/46719/2 "2008-05-26T22:09:07Z")

</div>

-------- Original-Nachricht --------

> Datum: Mon, 26 May 2008 23:19:09 +0900  
> Von: nimrod cohen \<nim\_cohen@hotmail.com\>  
> An: ruby-talk@ruby-lang.org  
> Betreff: wmi problem

> hi  
> i need to execute a remote command on windows machine using ruby  
> my env is windows xp  
> what ruby method/packet should i use ?  
> example will really help
> 
> thanks  
> nimrod
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> News, entertainment and everything you care about at Live.com. Get it now!  
> [http://www.live.com/getstarted.aspx](http://www.live.com/getstarted.aspx)

Dear Nimrod,

win32utils can help.  
There are some explanations/examples here:

[http://209.85.129.104/search?q=cache:-2okl1cCLJ0J:jp.rubyist.net/magazine/%3F0005-RLR-en+remote+win32utils&hl=de&ct=clnk&cd=1&gl=de&client=firefox-a](http://209.85.129.104/search?q=cache:-2okl1cCLJ0J:jp.rubyist.net/magazine/%3F0005-RLR-en+remote+win32utils&hl=de&ct=clnk&cd=1&gl=de&client=firefox-a)

Best regards,

Axel

> **···**
>
> --  
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!  
> Ideal für Modem und ISDN: [GMX Handytarife 2024 | jetzt wechseln & sparen](http://www.gmx.net/de/go/smartsurfer)
