![]() | |||
Lync Cmdlets by Category |
![]() |
Lync Cmdlets by Verb |
![]() | |||
Lync Cmdlets by Category |
![]() |
Lync Cmdlets by Verb |
Test-CsAddressBookService |
Test-CsAddressBookWebQuery |
Test-CsAVConference |
Test-CsCertificateConfiguration |
Test-CsClientAuth |
Test-CsComputer |
Test-CsDialInConferencing |
Test-CsDialPlan |
Test-CsFederatedPartner |
Test-CsGroupExpansion |
Test-CsGroupIM |
Test-CsIM |
Test-CsKerberosAccountAssignment |
Test-CsLisCivicAddress |
Test-CsLisConfiguration |
Test-CsLocationPolicy |
Test-CsOUPermission |
Test-CsP2PAV |
Test-CsPhoneBootstrap |
Test-CsPresence |
Test-CsPstnOutboundCall |
Test-CsPstnPeerToPeerCall |
Test-CsRegistration |
Test-CsSetupPermission |
Test-CsTopology |
Test-CsTrunkConfiguration |
Test-CsVoiceNormalizationRule |
Test-CsVoicePolicy |
Test-CsVoiceRoute |
Test-CsVoiceTestConfiguration |
Test-CsVoiceUser |
Test-CsWebApp |
Test-CsWebAppAnonymous |
TargetFqdn : lync.contoso.com Result : Success Latency : 00:00:02.5953597 Error : Diagnosis : |
$Test_result = test-csim lync.contoso.com $Test_result |
$Test_result = test-csim lync.contoso.com $a = Test_result.TargetFQDN+ " "+Test_result.error if ($Test_result.Result -eq "Success") { "IM Working" write-eventlog -logname Application -source LyncTestApp -eventID 3000 -entrytype Information -message "LyncTestApp no problem detected." } Else { "IM Failed" write-eventlog -logname Application -source LyncTestApp -eventID 3001 -entrytype Information -message "LyncTestApp detected a problem. $a" } |
Note: First you must register your app with new-eventlog -LogName Application -Source LyncTestApp |