class Nexpose::MobilePowershellDiscoveryConnection
Public Class Methods
new(name, address, user, password, exchange_hostname, exchange_username, exchange_password)
click to toggle source
Create a new Mobile Powershell discovery connection.
@param [String] name Name to assign to this connection. @param [String] address IP or fully qualified domain name of the
WinRM server.
@param [String] user WinRM User
name for credentials on this connection. @param [String] password WinRM password for credentials on this connection. @param [String] exchange_hostname fully qualified domain name of the exchange server @param [String] exchange_username Exchange User
name for exchange credentials on this connection. @param [String] exchange_password Exchange password for exchange credentials on this connection.
# File lib/nexpose/discovery.rb, line 351 def initialize(name, address, user, password, exchange_hostname, exchange_username, exchange_password) @name = name @address = address @user = user @password = password @protocol = Protocol::HTTPS @exchange_hostname = exchange_hostname @exchange_username = exchange_username @exchange_password = exchange_password @type = Type::ACTIVESYNC_POWERSHELL @id = -1 @port = 443 # Port not used for mobile connection end