Hi IndraYour endpoint seems incorrect. Try this -winrm = WinRM::WinRMWebService.new("http://172.16.1.197:5985/wsman", :plaintext, :user => "administrator", :pass => " ", :basic_auth_only => true) do
puts "connected successfully"
endThanks,Mukta.On 8 November 2014 05:25, indra < " target="_blank"> > wrote:Hi,
Using winrm itself,how to authenticate windows from linux using ruby?
here is my code:
winrm = WinRM::WinRMWebService.new("172.16.1.197", :plaintext, :user => "administrator", :pass => " ", :basic_auth_only => true)do
puts "connected successfully"
end
BUt it doesnot shows connect successfully ,it doesnot execute do loop ,also not showing any error
Thanks,
Indra
Archive powered by MHonArc 2.6.16.