require 'serverspec' require 'winrm' set :backend, :winrm set :os, :family => 'windows' user = <username> pass = <password> endpoint = "http://#{ENV['TARGET_HOST']}:5985/wsman" if Gem::Version.new(WinRM::VERSION) < Gem::Version.new('2') winrm = ::WinRM::WinRMWebService.new(endpoint, :ssl, :user => user, :pass => pass, :basic_auth_only => true) winrm.set_timeout 300 # 5 minutes max timeout for any
{{#tags}}- {{label}}
{{/tags}}