< Back

Add-SMSAccessRights

Fri Jan 10, 2020 7:55 pm

NAME Add-SMSAccessRights



SYNTAX

Add-SMSAccessRights [-CardNumber] <int> -AccessCodeID <int> -CustomerCode <int> [-Wait] [-ReturnSMSCommand]

[-SMSConnection <Object>] [-WhatIf] [-Confirm] [<CommonParameters>]



Add-SMSAccessRights [-EmployeeReference] <string> -AccessCodeID <int> -CustomerCode <int> [-Wait]

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



Add-SMSAccessRights [-LastName] <string> [-FirstName] <string> -AccessCodeID <int> -CustomerCode <int> [-Wait]

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





PARAMETERS

-AccessCodeID <int>

AccessCodeID to add to card(s) found.



Required? true

Position? Named

Accept pipeline input? true (ByPropertyName)

Parameter set name (All)

Aliases None

Dynamic? false



-CardNumber <int>

Card number



Required? true

Position? 0

Accept pipeline input? true (ByValue)

Parameter set name CardNumber

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? true (ByPropertyName)

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? true

Position? 1

Accept pipeline input? true (ByPropertyName)

Parameter set name EmployeeNumber

Aliases EmployeeID

Dynamic? false



-FirstName <string>

Card holders First name



Required? true

Position? 3

Accept pipeline input? true (ByPropertyName)

Parameter set name EmployeeName

Aliases GivenName

Dynamic? false



-LastName <string>

Card holders Last name



Required? true

Position? 2

Accept pipeline input? true (ByPropertyName)

Parameter set name EmployeeName

Aliases Surname

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





OUTPUTS

System.Object



ALIASES

None





REMARKS

None