< Back

Set-SMSCard

Fri Jan 10, 2020 8:03 pm

NAME Set-SMSCard



SYNTAX

Set-SMSCard [[-CardNumber] <int>] [[-EmployeeReference] <string>] [[-LastName] <string>] [[-FirstName] <string>]

-CustomerCode <int> [-MiddleName <string>] [-ActiveDate <datetime>] [-InactiveDate <datetime>] [-OtherNamedValues

<hashtable>] [-Wait] [-ReturnSMSCommand] [-SMSConnection <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]





PARAMETERS

-ActiveDate <datetime>

Date card is set to become active



Required? false

Position? Named

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases None

Dynamic? false



-CardNumber <int>

Card number



Required? false

Position? 0

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases None

Dynamic? false



-Confirm



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases cf

Dynamic? false



-CustomerCode <int>

Customer/Facility Code



Required? true

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-EmployeeReference <string>

Employee reference number, typically the employee number or employee ID. If passed ADUser object, uses

EmployeeID



Required? false

Position? 1

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases EmployeeID

Dynamic? false



-FirstName <string>

Card holders First name



Required? false

Position? 3

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases GivenName

Dynamic? false



-InactiveDate <datetime>

Date card is set to become in-active



Required? false

Position? Named

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases accountExpires

Dynamic? false



-LastName <string>

Card holders Last name



Required? false

Position? 2

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases Surname

Dynamic? false



-MiddleName <string>

Card holders Middle name



Required? false

Position? Named

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases Initials

Dynamic? false



-OtherNamedValues <hashtable>

Other attributes to set on the card as a hashtable of name value pairs using the database field names and data

types of the DataImportTable.



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-ReturnSMSCommand

Switch to return the SMSCommand object generated and executed by this cmdlet, can be combined with whatif.

Otherwise nothing is returned



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-SMSConnection <Object>

SMSConnection object, use Get-SMSServerConnection to create the object.



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Wait

Use this switch to have the process wait until records are processed (about 1 minute) and return any errors.



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-WhatIf



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases wi

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

System.Int32

System.String

System.DateTime





OUTPUTS

System.Object



ALIASES

None





REMARKS

None