This is a quick to the point post to show you the preparations needed to use the Test-CS PowerShell commands family.
you need to create and configure two accounts for synthetic transactions for Lync.
Creating Lync test accounts
First you need to create a couple of accounts on your Active Directory to use them with the Test-CS commands.
Enable Both account for Lync
enable the accounts on Lync and add DIDs to them if you going to use them for PSTN testing, also enable all required features you are going to want to test. e.g. conferencing , remote access….
Configure accounts for Synthetic Transactions
Here you need to run one PowerShell command line to configure the new two test users to be used in testing scenarios:
> New-CsHealthMonitoringConfiguration –Identity <poolName> –FirstTestSamAccountName <domain\first username> –FirstTestUserSipUri sip:”First User SipAddress” –SecondTestSamAccountName <domain\Second usernamet> –SecondTestUserSipUri sip:”Second User SipAddress”
so in my example it will be like following
> New-CsHealthMonitoringConfiguration –Identity <lync-fe01.lyncdude.net> –FirstTestSamAccountName lyncdude\lyncdummy1 –FirstTestUserSipUri sip:”email@example.com” –SecondTestSamAccountName lyncdude\lyncdummy2–SecondTestUserSipUri sip:”firstname.lastname@example.org“
with this if you try to use any of the Test-CS commands , it will work.
you can test with this:
> Test-CSIM -targetfqdn “pool-name”
That’s it, you can use my Lync Environment Report script with this article to get a Simple daily report about your Lync environment.