# Creating a automated script

**URL:** <https://www.ruby-forum.com/t/creating-a-automated-script/161954>\
**Category:** Ruby\
**Created:** [March 4, 2009, 7:18am UTC](https://www.ruby-forum.com/t/creating-a-automated-script/161954 "2009-03-04T07:18:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [March 4, 2009, 7:18am UTC](https://www.ruby-forum.com/t/creating-a-automated-script/161954/1 "2009-03-04T07:18:48Z")

</div>

I wanted to create a small automated script using Ruby. I just need to  
know what classes do I use to create this script.  
When running my script I would like for itto do the following

1. Automatically Log user onto another machine via RDP

2. While logged in the session I want the script to automatically create  
an iteration of files and folders, rename, change attribute of  
files\folders.

3. Log off then log back on another user via RDP again, repeating step

4. 

I would just like to know what classes do I use to create this script? I  
know the File class could be one.

Thanks

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [March 4, 2009, 12:24pm UTC](https://www.ruby-forum.com/t/creating-a-automated-script/161954/2 "2009-03-04T12:24:12Z")

</div>

You may be interested in this book:

[http://www.amazon.co.uk/Practical-System-Administration-Experts-Source/dp/1590598210](http://www.amazon.co.uk/Practical-System-Administration-Experts-Source/dp/1590598210)

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [March 4, 2009, 2:01pm UTC](https://www.ruby-forum.com/t/creating-a-automated-script/161954/3 "2009-03-04T14:01:06Z")

</div>

RDP is a proprietary Microsoft protocol used for Terminal Services  
(i.e. remote GUI). I don’t know much about it, but I’m pretty sure  
this does not allow you to automate the execution of scripts on remote  
machines. You may want to look into Net::SSH.
