Sha256: 6c85f99ee4b07da995988b48e83003be25850aaefad3a884b719c247db413c9d

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 KB

Contents

--------------------------------------------------------------------------
              Windows Remote Management (WinRM) for Ruby
--------------------------------------------------------------------------
This is a SOAP library that uses the functionality in Windows Remote
Management(WinRM) to call native object in Windows.  This includes, but is
not limitted to, running batch scripts, powershell scripts and fetching WMI
variables.  For more information on WinRM, please visit Microsoft's WinRM
site: http://msdn.microsoft.com/en-us/library/aa384426(v=VS.85).aspx


My Info: 
BLOG:  http://distributed-frostbite.blogspot.com/
Add me in LinkedIn:  http://www.linkedin.com/in/danwanek

--------------------------------------------------------------------------
--------------------------------------------------------------------------
TO USE:
require 'winrm'
# See REQUIRED GEMS below

gem install -r winrm

REQUIRED GEMS: (These should automatically install with the winrm gem)
# Handsoap
gem install -r handsoap
# Nokogiri XML Parser
gem install -r nokogiri
# HttpClient
gem install -r httpclient
# NTLM Library
gem install -r rubyntlm
#UUID Library
gem install -r uuid


EXAMPLE:
require 'winrm'
WinRM::WinRM.endpoint = 'http://mywinrmhost:5985/wsman'
WinRM::WinRM.set_auth('user','password')
winrm = WinRM::WinRM.instance
outputps = winrm.powershell 'script.ps1'
outputcmd = winrm.cmd 'ipconfig'

To specify manually where your CA certificate store is use this:
WinRM::WinRM.set_ca_trust_path('/etc/ssl/certs')

--------------------------------------------------------------------------
DISCLAIMER:  If you see something that could be done better or would like
to help out in the development of this code please feel free to clone the
'git' repository and send me patches:
git clone git://github.com/zenchild/WinRM.git
or add an issue on GitHub:
http://github.com/zenchild/WinRM/issues

Cheers!
--------------------------------------------------------------------------

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
winrm-0.0.5 README
winrm-0.0.4 README