Connect-SMSCmdlet

Parameters   Output Objects   Config Settings  

The Connect-SMS cmdlet is used to create a persistent connection object.

Syntax

$cnn = Connect-SMS [parameters]

Remarks

This cmdlet allows you to create a persistent connection object to be used with related cmdlets.

When executing the cmdlet a connection object is returned. Pass this object to the Connection parameter of related cmdlets to use the newly created connection object.

To disconnect call Disconnect-SMS.

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
ConfigSpecifies one or more configuration settings.
CredentialThe PSCredential object to use for user/password authentication.
FirewallHostName or IP address of firewall.
FirewallPasswordA password if authentication is to be used when connecting through the firewall.
FirewallPortThe port of the firewall to which to connect.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
ForceForces the component to accept the default behavior instead of querying the user.
LocalIPThe IP address of the local interface to use.
LogFileThe location of a file to which debug information is written.
PasswordThe password to use for authentication.
PortThe TCP port in the remote host to which to connect.
SenderAddressThe address of the ESME.
ServerThe address of the Server.
SSLDetermines how the component starts SSL negotiation.
SSLAcceptThe encoded public key of the certificate which is to be trusted explicitly.
SystemTypeThis is a string representing the type of system during a connection.
TimeoutThe maximum time allowed for the operation.
UserThe username to use for authentication.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

SMSConnectionThe connection object.

Config Settings


The following is a list of config settings for the cmdlet with short descriptions. Click on the links for further details.

AddressRangeSpecifies the addr_range parameter when binding.
BinaryDataCodingWhether or not to binary encode the message when DataCoding is set.
BindAsReceiverCauses the component to bind as a receiver.
BindAsTransmitterCauses the component to bind as a transmitter.
CustomTLVOptional TLV parameters added after the mandatory parameters and before the payload.
DataCodingThe data encoding mechanism to be used for the current message.
DecodeHexStringsWill decode an ascii hex-representation of binary data prior to transmission.
DestinationNPIThe Number Planning Indicator for the destination ESME.
DestinationTONThe Type of Number for the destination ESME.
DoSplitLargeMessagesSplits long messages and returns the UDH and Message Parts.
HexStringA hex-encoded binary string to be sent to the current recipient.
IncomingDestinationAddressReturns the dest_addr field inside the received message.
IntermediateNotificationCauses the component to request intermediate notification.
MaxCIMDSMSLengthIndicates the maximum SMS message length for the CIMD protocol.
MaxSMSLengthIndicates the maximum SMS message length.
MCReceiptThe Type of MC Delivery Receipt requested.
MessageInReceiptedMessageIdThe receipted_message_id field of an incoming deliver_sm PDU.
MessageModeThe Type of Messaging Mode requested.
MessageTypeThe Type of Message.
PDUFormatThe format of the PDU.
ProtocolIdThe protocol identifier.
SMEAcknowledgementThe Type of SME originated acknowledgement requested.
SourceNPIThe Number Planning Indicator for the ESME.
SourceTONThe Type of Number for the ESME.
SplitLargeMessagesDetermines whether large messages are split into multiple parts.
SplitMessageMethodDetermines how large messages are split into multiple parts.
StatusReportRequestDefines in what cases a status report is created by the server.
SubAddrDefines a unique index for application instance.
SynchronousSendCommandControls whether SendCommand behaves synchronously or asynchronously.
SynchronousSendMessageControls whether SendMessage behaves synchronously or asynchronously.
UseGSM7BitEncodingWhether or not to use GSM 7-bit encoding.
UseGSM7bitEncodingCompressionWhether to compress GSM 7-bit encoded characters.
WaitForBannerSpecifies the CIMD2 banner the component will wait for when connecting.
ConnectionTimeoutSets a separate timeout value for establishing a connection.
FirewallAutoDetectTells the component whether or not to automatically detect and use firewall system settings, if available.
FirewallHostName or IP address of firewall (optional).
FirewallPasswordPassword to be used if authentication is to be used when connecting through the firewall.
FirewallPortThe TCP port for the FirewallHost;.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
KeepAliveIntervalThe retry interval, in milliseconds, to be used when a TCP keep-alive packet is sent and no response is received.
KeepAliveTimeThe inactivity time in milliseconds before a TCP keep-alive packet is sent.
LingerWhen set to True, connections are terminated gracefully.
LingerTimeTime in seconds to have the connection linger.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe port in the local host where the component binds.
MaxLineLengthThe maximum amount of data to accumulate when no EOL is found.
MaxTransferRateThe transfer rate limit in bytes per second.
ProxyExceptionsListA semicolon separated list of hosts and IPs to bypass when using a proxy.
TCPKeepAliveDetermines whether or not the keep alive socket option is enabled.
TcpNoDelayWhether or not to delay when sending packets.
UseIPv6Whether to use IPv6.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
MaskSensitiveWhether sensitive data is masked in log messages.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

LogFile Parameter (Connect-SMS Cmdlet)

The location of a file to which debug information is written.

Syntax

Connect-SMS -LogFile string

Remarks

When specified, the cmdlet will log debug information to the file. If the file exists, the information will be appended.

Default Value

null

Config Parameter (Connect-SMS Cmdlet)

Specifies one or more configuration settings.

Syntax

Connect-SMS -Config string[]

Remarks

Default Value

null

Credential Parameter (Connect-SMS Cmdlet)

The PSCredential object to use for user/password authentication.

Syntax

Connect-SMS -Credential PSCredential

Remarks

Default Value

null

Parameter Position

1

Parameter Alias

auth

FirewallHost Parameter (Connect-SMS Cmdlet)

Name or IP address of firewall.

Syntax

Connect-SMS -FirewallHost string

Remarks

Default Value

""

FirewallPassword Parameter (Connect-SMS Cmdlet)

A password if authentication is to be used when connecting through the firewall.

Syntax

Connect-SMS -FirewallPassword string

Remarks

Default Value

""

FirewallPort Parameter (Connect-SMS Cmdlet)

The port of the firewall to which to connect.

Syntax

Connect-SMS -FirewallPort int

Remarks

Default Value

0

FirewallType Parameter (Connect-SMS Cmdlet)

Determines the type of firewall to connect through.

Syntax

Connect-SMS -FirewallType string

Remarks

Default Value

0

FirewallUser Parameter (Connect-SMS Cmdlet)

A user name if authentication is to be used connecting through a firewall.

Syntax

Connect-SMS -FirewallUser string

Remarks

Default Value

""

Force Parameter (Connect-SMS Cmdlet)

Forces the component to accept the default behavior instead of querying the user.

Syntax

Connect-SMS -Force SwitchParameter

Remarks

Default Value

false

LocalIP Parameter (Connect-SMS Cmdlet)

The IP address of the local interface to use.

Syntax

Connect-SMS -LocalIP string

Remarks

Default Value

""

Parameter Alias

LocalAddress

LogFile Parameter (Connect-SMS Cmdlet)

The location of a file to which debug information is written.

Syntax

Connect-SMS -LogFile string

Remarks

Default Value

""

Message Parameter (Connect-SMS Cmdlet)

The full text of the message to send (without headers).

Syntax

Connect-SMS -Message string

Remarks

Default Value

""

Password Parameter (Connect-SMS Cmdlet)

The password to use for authentication.

Syntax

Connect-SMS -Password string

Remarks

Default Value

""

Port Parameter (Connect-SMS Cmdlet)

The TCP port in the remote host to which to connect.

Syntax

Connect-SMS -Port int

Remarks

Default Value

2775

Recipient Parameter (Connect-SMS Cmdlet)

The recipient of the instant message.

Syntax

Connect-SMS -Recipient string

Remarks

Default Value

""

Parameter Position

2

Parameter Alias

To

SenderAddress Parameter (Connect-SMS Cmdlet)

The address of the ESME.

Syntax

Connect-SMS -SenderAddress string

Remarks

Default Value

""

Server Parameter (Connect-SMS Cmdlet)

The address of the Server.

Syntax

Connect-SMS -Server string

Remarks

Default Value

""

Parameter Position

0

This is a required parameter.

SSL Parameter (Connect-SMS Cmdlet)

Determines how the component starts SSL negotiation.

Syntax

Connect-SMS -SSL string

Remarks

Default Value

3

SSLAccept Parameter (Connect-SMS Cmdlet)

The encoded public key of the certificate which is to be trusted explicitly.

Syntax

Connect-SMS -SSLAccept string

Remarks

Default Value

""

Parameter Alias

Accept

SystemType Parameter (Connect-SMS Cmdlet)

This is a string representing the type of system during a connection.

Syntax

Connect-SMS -SystemType string

Remarks

Default Value

""

Timeout Parameter (Connect-SMS Cmdlet)

The maximum time allowed for the operation.

Syntax

Connect-SMS -Timeout int

Remarks

Default Value

10

UseHex Parameter (Connect-SMS Cmdlet)

Specifies if Message is hex encoded.

Syntax

Connect-SMS -UseHex SwitchParameter

Remarks

Default Value

false

User Parameter (Connect-SMS Cmdlet)

The username to use for authentication.

Syntax

Connect-SMS -User string

Remarks

Default Value

""

SMSConnection Output Object (Connect-SMS Cmdlet)

The connection object.

Syntax

Object SMSConnection {
   string[] Config;
   PSCredential Credential;
   string FirewallHost;
   string FirewallPassword;
   int FirewallPort;
   string FirewallType;
   string FirewallUser;
   SwitchParameter Force;
   string LocalIP;
   string LogFile;
   string Password;
   int Port;
   string SenderAddress;
   string Server;
   string SSL;
   string SSLAccept;
   string SystemType;
   int Timeout;
   string User;
}

Remarks

This object holds the connection. It may be passed to the Connection parameter of related cmdlets.

Config Settings (Connect-SMS Cmdlet)

SMPP Config Settings

CustomTLV:  
HexString:  
MCReceipt:  
PDUFormat:  
SourceNPI:  
SourceTON:  
SubAddr:  

TCPClient Config Settings

Linger:  
LocalHost:  
LocalPort:  
UseIPv6:  

Socket Config Settings

AbsoluteTimeout:  
FirewallData:  
InBufferSize:  
OutBufferSize:  

Base Config Settings

BuildInfo:  
CodePage:  
LicenseInfo:  
MaskSensitive:  
UseInternalSecurityAPI: