Sha256: 8f63ebcbfa653e8e76da3e611677e788ebcb3a84731332f4c168b88ebb3b1abc
Contents?: true
Size: 297 Bytes
Versions: 284
Compression:
Stored size: 297 Bytes
Contents
require 'winrm' endpoint = 'http://localhost:5985/wsman' winrm=WinRM::WinRMWebService.new(endpoint, :plaintext, :user => 'Administrator', :pass => 'vagrant', :basic_auth_only => true) winrm.cmd('ifconfig /all') do |stdout, stderr| STDOUT.print stdout STDERR.print stderr end #winrm.open_shell
Version data entries
284 entries across 50 versions & 3 rubygems