Most Lync Health Tests Run remote powershell cmdlets that are native to Lync Server to perform their testing.
These tests require that Alternate credentails be specified during test creation, and that a pair of Lync Enabled Accounts be setup to perform synthetic transactions within the Lync pool:
To setup the Accounts run the following Powershell Cmdlet within the Lync Management shell:
New-CsHealthMonitoringConfiguration -Identity <FQDN_OF_Lync_Pool> -FirstTestUserSipUri "sip:user1@mycompany.com" -SecondTestUserSipUri "sip:user2@mycompany.com"
The Easiest Method of Setting up Alternate Credentials (used in the creation of the Remote Powershell session) would be to simply add the Service Account as a new set of alternate credentials. This will ensure that the proper permissions are in place already for both the Lync and SOM servers. If specifying a different account it must have the following:
Local Administrator Permissions On the Lync Server
Membership in CsHelpDesk, CSAdministrator or CSServerAdministrator security group for the Lync environment
To Natively perform these tests:
1. Create a remote powershell session from the Spotlight On Messaging server to the Lync Pool:
## Specify the Alternate Credentials when propted by Get-Credential
$cred = Get-Credential
$session = New-PSSession -Computername <FQDN_OF_Lync_Pool> -Credential $cred -Port 443 -ApplicationName /OcsPowershell -UseSSL -ConfigurationName http://schemas.microsoft.com/powershell/Microsoft.PowerShell
Import-PSSession $session
2. Issue the cmdlet for the test you are going to verify (ie. Test-CsIm -TargetFqdn <FQDN_OF_Lync_Pool> will test the "Instant Messaging Health Test"):
Lync Health Test | Cmdlet Used | Arguments Passed |
Address Book Service Health Test | Test-CsAddressBookService | -TargetFqdn <FQDN_OF_Lync_Pool> |
Audio/Video Conference Health Test | Test-CsAVConference | -TargetFqdn <FQDN_OF_Lync_Pool> |
Instant Messaging Conference Health Test | Test-CsGroupIM | -TargetFqdn <FQDN_OF_Lync_Pool> |
Instant Messaging Health Test | Test-CsIM | -TargetFqdn <FQDN_OF_Lync_Pool> |
Log On Registration Health Test | Test-CsRegistration | -TargetFqdn <FQDN_OF_Lync_Pool> |
Peer to Peer Audio/Video Call Health Test | Test-Csp2pAV | -TargetFqdn <FQDN_OF_Lync_Pool> |
Presence Status Health Test | Test-CsPresence | -TargetFqdn <FQDN_OF_Lync_Pool> |