A feature carried over from Lync Server 2010 are synthetic transactions that are a set of PowerShell cmdlets used to simulate actions taken by servers or users in the environment. These synthetic transactions allow an administrator to conduct realistic tests against a service. In the case of a Director, the most useful synthetic transaction is the Test-CSRegistration cmdlet, which simulates a user signing in to the specified server.
Running the Test-CSRegistration cmdlet requires providing a target server, user credential, and SIP address. A registrar port can optionally be included. The user credential parameter’s username and password must be collected by an authentication dialog and saved to a variable, as seen in this command:
$Credential = Get-Credential "COMPANYABC om"
After the credentials have been collected, the cmdlet can be run with the user credential variable previously saved.
Test-CSRegistration –TargetFQDN DIR1-SF.companyabc.com –UserCredential $Credential – UserSipAddress sip:[email protected] –RegistrarPort 5061 –Verbose
TargetFQDN : DIR1-SF.companyabc.com
Result : Success
Latency : 00:00:10.9506726
As seen in the output, the registration test was successful.